Page 1 of 1

Problems with print settings

Posted: Mon Oct 11, 2010 3:56 am
by philenain
I have to print many reports in one time.
The problem is : the report control don't save all the print options (color, ...)

For exemple i want to print 2 black and white reports:

Code: Select all

StiOptions.Print.StorePrinterSettingsInReportAfterPrintDialog = true;
report.Print(true);
report.Print(false);
Only the first document was in black and white.

I try to use the dot.net base print dialog (System.Windows.Forms.PrintDialog) :

Code: Select all

PrintDialog prntDiag = new PrintDialog();
prntDiag.ShowDialog();
report.Print(false,prntDiag.PrinterSettings);
The document wasn't in black an white.

Is there any tips to save ALL the print settings for other reports printings ?

Problems with print settings

Posted: Tue Oct 12, 2010 3:35 am
by Ivan
Hello,
philenain wrote:I have to print many reports in one time.
The problem is : the report control don't save all the print options (color, ...)
It's by design, only second properties are stored: Collate, Copies, Duplex, PrinterName.
philenain wrote:I try to use the dot.net base print dialog (System.Windows.Forms.PrintDialog) : ...
The document wasn't in black an white.
Please try to set the following static property:

Code: Select all

StiOptions.Print.UsePrinterSettingsEntirely = true;
Thank you.

Problems with print settings

Posted: Tue Oct 12, 2010 8:58 am
by philenain
Ivan wrote:
philenain wrote:I try to use the dot.net base print dialog (System.Windows.Forms.PrintDialog) : ...
The document wasn't in black an white.
Please try to set the following static property:

Code: Select all

StiOptions.Print.UsePrinterSettingsEntirely = true;
Add this line solve the problem.

Thanks.

Problems with print settings

Posted: Tue Oct 12, 2010 9:04 am
by Andrew
Perfect! Have a nice day!