Error access violation when create pdf file with password
Hi.
I get the error when create pdf file with password.
PDF file successfully created, but it cannot be opened.
below is my code :
Is there any way to fix it?
Thank you.
I get the error when create pdf file with password.
PDF file successfully created, but it cannot be opened.
below is my code :
PathApp := 'D:\E-Report\';
NameFile := 'MonthlyReport';
frxreport.LoadFromFile('Server01\' + 'report01.fr3');
frxPDFExport1.ShowDialog := False;
frxPDFExport1.Background := False;
frxPDFExport1.UserPassword :='test';
frxPDFExport1.OwnerPassword :='test';
frxPDFExport1.ProtectionFlags := [ePrint];
frxPDFExport1.FileName := PathApp+NameFile+'.pdf';
frxreport.PrepareReport(true);
frxreport.Export(frxPDFExport1);
Is there any way to fix it?
Thank you.
Comments