Hi
I try to save/export AX 2009 report to pdf file using ReportRun class. Its working fine but when i try to open this pdf in custom c# application i got error - "Pdf file is damaged or protected with not specified encryption".
If we'r using Adobe to open same report its working fine. Is there any encryption added saved/exported pdf like that?
Code I use to save report :
....
ReportRun rr;
...
_args.name(ReportStr("ReportName"));
_args.record(selectedRecord);
rRun = new ReportRun(_args);
rRun.query().interactive(0);
rRun.report().interactive(0);
rRun.printJobSettings().fileName(@"Directory path + PdfFileName");
rRun.printJobSettings().setTarget(Printmedium::File);
rRun.printJobSettings().format(PrintFormat::PDF);
rRun.run();