ActiveReports.PdfExport Request technical support
Security Property
See Also  Example


Gets a PdfSecurity object which allows you to initialize document encryption and security.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Security As PdfSecurity
Visual Basic (Usage)Copy Code
Dim instance As PdfExport
Dim value As PdfSecurity
 
value = instance.Security
C# 
public PdfSecurity Security {get;}

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