Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print to much copy

Status
Not open for further replies.

xeaon

Programmer
Aug 19, 2003
10
CA
I have the CR viewer 9 from .net in my app.
In this app. i can preview, print with print option defined in a config file, or print using the default print dialog. I'm talking about the dialog that ask you wich printer and how many copy...

The thing is that when i force print option like this :
this.oRpt.PrintOptions.PrinterName = lsPrinterName;
this.oRpt.PrintToPrinter(Convert.ToInt32(lsNbrcopy), true, 1,1);

It work well. (That is when the user choose to print using de config file, no dialog ar showned)

But when i use preview and that after i click on the print button. or when i call:
this.crystalReportViewer1.PrintReport();
The default print dialog is prompt, then when the user input more than one copy, the report print the wrong number of copie.

On the production environnement it print 4 instead of 2 , and in my dev env. it print 1 instead of 2....

Anyone have an idea why this append?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top