Posted 26 October 2020, 1:03 am EST
With many versions of ActiveReports we were able to generate a PDF report and print in Adobe with the following code:
Dim pdfExp As New PdfExport
pdfExp.ImageQuality = ImageQuality.Highest
pdfExp.ImageResolution = 3600
pdfExp.Security.Encrypt = True
pdfExp.Security.Permissions = PdfPermissions.AllowPrint
pdfExp.Security.OwnerPassword = "******"
pdfExp.Export(doc, OutPutFileName)
When we upgraded from version 9 to version 12 of ActiveReports. The printing option in Adobe was disabled.
I removed “pdfExp.Security.Encrypt = True” and that fixed the problem. Is this a bug? Is it OK if the Encrypt option is removed?
Thank you,
David