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