cancel
Showing results for 
Search instead for 
Did you mean: 

best practices for printing ? PrintToPrinter OR PrintOutputController

deniselcia
Explorer
0 Kudos

printtoprinter-vs-printoutputcontroller.jpg

Hello,

We have carried out editing tests with the PrintToPrinter and PrintOutputController methods, we have observed for the same document with the same data on the same machine and the same printer differences in formatting (margins, font size) and time of answers.

Can you tell us which method is recommended to edit a Crystal Report document from the .net runtime?

What is the fastest method?

On the flow of the code:

Today we systematically execute the VerifyDatabase() method before launching the print method.

Is it necessary to run this method?

Attached the result of printing with the 2 methods ( i can't attach the report whith the XML/XSD datasources )

We use Crystal Report with XML data sources.

Using CRRuntime_32bit_13_0_21.msi and CRdbXML 13.0.23 runtime

Crystal 2016 or Crystal 2020 version

Cordially,

Denis Ramaux

Accepted Solutions (1)

Accepted Solutions (1)

Hi Denis,

First issue is don't mix runtime version, unexpected results.

Alway upgrade to the latest SP, we don't support older version since we release full builds only, current SP is 32

See the WIKI for latest updates and download link etc.

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

P2P uses the printer saved in the report, should be used with an internal printer, most properties cannot be changed, doesn't always work depending on the printer used and which printer is set on your PC as the default, changing it can affect the output.

POC is used if the report was not designed with the specific printer and allow you to adjust various parts.

Registry keys will adjust the spacing and margins to fit. Search for Master kba registry using google and you'll find it. There are Keys to adjust the clicking etc. when previewing, exporting and printing.

Always Enable Dissociate to allow for variations and to allow the formatting components to "adjust" the page accordingly.

Don't use Verify if you don't need to, it's not required, always assume the DB has not changed since the report was finalized, if it does change then verify each report in the Designer.

Sample Printing app on the WIKI page for more details.

deniselcia
Explorer
0 Kudos

Hi Don,

Thanks a lot for your answer,

I Will Update the runtime and I will try your solutions.

Best regards,

Denis

Answers (0)