cancel
Showing results for 
Search instead for 
Did you mean: 

CR2020 viewer print output is incorrect when PrintMode=PrintOutputController....

grchen168
Explorer
0 Kudos
578

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

 

View Entire Topic
DonWilliams
Active Contributor
0 Kudos

Download page has a Printer test app:

https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html

It has a routine to Set Printer and Select POC or P2P, use it to allow users to select and set printer:

Printing Crystal Reports in .NET

 

grchen168
Explorer
0 Kudos
Hi, Don, what you mentioned is : using code to prepare various parameters, then call the "PrintOutputController.PrintReport" or "PrintToPrinter" to print directly to specified printer.
grchen168
Explorer
0 Kudos
But, what my need is programatically show up the POC printer setup dialog to let user interact with. Is it possible?
DonWilliams
Active Contributor
0 Kudos
Look at my test app, it's all there and use POC in your code to select the printer.