print dialog into internet explorer 11 does not working

New Here ,
Aug 04, 2020

Copy link to clipboard

Copied

I have a problem when trying to print a jasper in pdf from internet explorer. The problem is that with the protected mode option activated at startup checked, the print dialog box is not displayed. On the other hand, removing that option does show it. I can't tell users to adapt Acrobar Reader settings for the app to work. This is my Java source code.

 

JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRPdfExporterParameter.PDF_JAVASCRIPT,
"this.print({bUI: true,bSilent: false,bShrinkToFit: true});");
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
exporter.exportReport();

TOPICS
Create PDFs, Print and prepress

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

print dialog into internet explorer 11 does not working

New Here ,
Aug 04, 2020

Copy link to clipboard

Copied

I have a problem when trying to print a jasper in pdf from internet explorer. The problem is that with the protected mode option activated at startup checked, the print dialog box is not displayed. On the other hand, removing that option does show it. I can't tell users to adapt Acrobar Reader settings for the app to work. This is my Java source code.

 

JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRPdfExporterParameter.PDF_JAVASCRIPT,
"this.print({bUI: true,bSilent: false,bShrinkToFit: true});");
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
exporter.exportReport();

TOPICS
Create PDFs, Print and prepress

Views

80

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 04, 2020 0

Have something to add?

Join the conversation