Skip to Content
avatar image
Former Member

CrystalReportViewer PrintMode PDF

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" ???

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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.

    Thanks

    Don

    Add comment
    10|10000 characters needed characters exceeded