Password
LoadOptions.Password property
Gets or sets the password. Read/write String.
public string Password { get; set; }
Property Value
The password.
Examples
The following sample code shows how to open password protected PowerPoint Presentation.
[C#]
LoadOptions loadOptions = new LoadOptions {Password = "YOUR_PASSWORD"};
using (Presentation presentation = new Presentation("pres.pptx", loadOptions))
{
// work with decrypted presentation
}
See Also
- class LoadOptions
- namespace Aspose.Slides
- assembly Aspose.Slides