ActiveReports.PdfExport Request technical support
OwnerPassword Property
See Also  Example


The owner password to be entered in the reader that permits full access to the document regardless of the specified user permissions.

Syntax

Visual Basic (Declaration) 
Public Property OwnerPassword As String
Visual Basic (Usage)Copy Code
Dim instance As PdfSecurity
Dim value As String
 
instance.OwnerPassword = value
 
value = instance.OwnerPassword
C# 
public string OwnerPassword {get; set;}

Return Value

String.

Example

C#Copy Code
PrivateAvoidAbtnExport_Click(ObjectAsender,ASystem.EventArgsAe)
{
AAAArptDataDynamicsArptA=AnewArptDataDynamics();
AAAADataDynamics.ActiveReports.Export.Pdf.PdfExportApA=AnewADataDynamics.ActiveReports.Export.Pdf.PdfExport();
AAAAp.Security.EncryptA=Atrue;
AAAAp.Security.OwnerPasswordA=A"Mortimer";
AAAAp.Security.UserPasswordA=A
"monkey";
AAAAp.Security.PermissionsA=ADataDynamics.ActiveReports.Export.Pdf.PdfPermissions.AllowPrint;
AAAAp.Security.Use128BitA=Atrue;
AAAArpt.Run();
AAAAthis.arv.DocumentA=Arpt.Document;
AAAAp.Export(rpt.Document,AApplication.StartupPathA+A
"\\p.pdf");
}
Visual BasicCopy Code
PrivateASubAbtnExport_Click(ByValAsenderAAsASystem.Object,AByValAeAAsASystem.EventArgs)AHandlesAButton2.Click
AAAADimArptAAsANewArptDD
AAAADimApAAsANewADataDynamics.ActiveReports.Export.Pdf.PdfExport
AAAAp.Security.EncryptA=ATrue
AAAAp.Security.OwnerPasswordA=A"Mortimer"
AAAAp.Security.UserPasswordA=A"monkey"
AAAAp.Security.PermissionsA=ADataDynamics.ActiveReports.Export.Pdf.PdfPermissions.AllowPrint
AAAAp.Security.Use128BitA=ATrue
AAAArpt.Run()
AAAAMe.Viewer1.DocumentA=Arpt.Document
AAAAp.Export(rpt.Document,AApplication.StartupPathA&A"\p.pdf")
EndASub

See Also