Greetings,
I need your help with the below issue.
I'm streaming an exported PDF from a telerik report and I need to insert JavaScript to be executed after acrobat event 'DidPrint' which I want to execute to close the PDF file after the filed being printed.
Below is how I render the report as PDF and print it sielently.
deviceInfo["JavaScript"] = "this.print({bUI: false, bSilent: false, bShrinkToFit: true});";
var reportProcessor = new ReportProcessor();
var reportSource = new Telerik.Reporting.InstanceReportSource();
Report1 report = new Report1();
report.ReportParameters["ID"].Value = "10";
reportSource.ReportDocument = report;
var renderingResult = reportProcessor.RenderReport("PDF", reportSource, deviceInfo);