on 2024 Oct 30 9:43 AM
Using Crystal Reports 2020 viewer in my C# WinForm application, after the data is loaded into the report, the RPT is correctly displayed in the viewer.
And, when setting Viewer's PrintMode=PrintToPrinter, and then, click the print button of the viewer, the print-out is also correct. So far so good.
But, this time, when setting the Viewer's PrintMode=PrintOutputController, and then, click the print button of the viewer, the print-out is incorrect!! That is, the top & left margin of the print-out is too much.
Why the viewer in printmode='PrintOutPutController' does not produce the same result as print mode='PrintToPrinter' ??
Or, under the circumstance of setting PrintMode=PrintOutputController, what other measures should I take in my C# code in order to instruct the viewer print output as the same as when setting viewer's PrintMode='PrintToPrinter'??
Request clarification before answering.
Deeply thank you for taking time to test it.
But, using the exactly same rpt file with the same data, if I open it with CR Designer and directly print it thru Designer's Print menu item, (the shown up printer dialog is the same as POC mode's printer dialog of .NET CR viewer component), and, again, choose the same Cute PDF Printer as target printer to generate PDF file, then generated PDF content is correct!! ("Correct" means the same as PTP mode's print-out)
If POC printing dialog and/or Cute PDF Printer cannot handle such custom-paper sized & margins report, why Designer's POC printing can produce correct result on Cute PDF Printer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.