Skip to Content

CrystalReportViewer PrintMode PDF

Jan 12 at 06:52 AM


avatar image
Former Member

I am using CrystalReport 13 SP20, in web .net program.

I set PrintMode of CrystalReportViewer to "PDF", this successfully popup printdialog to print the PDF.

However, the print dialog always default to "Scale to Fit" instead of "Actual Size". Then I open the PDF file, there is embedded javascript inside the PDF file generated by CrystalReport:

/S /JavaScript
/JS (this.pageNum=0;this.print\({bUI: true,bSilent: false,bShrinkToFit: true}\);this.closeDoc\(\);)

My question is, is there any way to override the "ShrinkToFit: true" to "ShrinkToFit: false" ???

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Feb 02 at 05:41 PM

Hi JH,

We looked at the source code and that value is hard coded in our source.

Since it's Java there is no option you can access it to alter it in CR SDK's.

Only option is to write your own Print button code.



10 |10000 characters needed characters left characters exceeded