hi.
when i open the attached pptx file (password protected "1"),
we receive the following error message. Any ideas?
Thanks,
- code -
string fileName = @"C:\TestPassword.pptx";
try{
Aspose.Slides.LoadOptions opt = new Aspose.Slides.LoadOptions();
opt.Password = "1";
Aspose.Slides.Presentation doc = new Aspose.Slides.Presentation(fileName, opt);
}catch (Exception ex){
Debug.WriteLine(ex.ToString());
Debug.WriteLine(ex.Message);
Debug.WriteLine(ex.GetType());
}
- error -
System.NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
위치: ..( encryptionInfo)
위치: ..(Byte[] block, Boolean isEncryption)
위치: ..()
위치: ...ctor(String hashAlgorithm, XmlNode encryptionDataNode, Byte[] passwordBytes)
위치: ..(MemoryStream encryptedPackage, MemoryStream encryptionInfo, String password)
위치: ..(Stream packageStream, String password)
위치: Aspose.Slides.Presentation.(Stream stream)
위치: Aspose.Slides.Presentation.(Stream seekableStream)
위치: Aspose.Slides.Presentation.(Stream stream)
위치: Aspose.Slides.Presentation..ctor(String file, LoadOptions loadOptions)
위치: Program.Main(String[] args) 파일 D:\Visual Studio 2008\Projects\Test_Aspose\Test_Aspose\Program.cs:줄 20
개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
System.NullReferenceException