Problems with print settings

Stimulsoft Reports.NET discussion
Post Reply
philenain
Posts: 3
Joined: Mon Oct 11, 2010 3:16 am
Location: France

Problems with print settings

Post 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 ?
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problems with print settings

Post 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.
philenain
Posts: 3
Joined: Mon Oct 11, 2010 3:16 am
Location: France

Problems with print settings

Post 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.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Problems with print settings

Post by Andrew »

Perfect! Have a nice day!
Post Reply