PrinterSettings and .Wpf

Stimulsoft Reports.WPF discussion
Post Reply
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

PrinterSettings and .Wpf

Post by chris.procter »

Hi there.
I'm trying to print a few hundred cheques with the same settings. Our original method isn't working so well, so I decided to try to save the printer settings of the first cheque, and apply them to the rest.

I found a previous issue here and tried to copy it, but my code:

Code: Select all

                    StiOptions.Print.UsePrinterSettingsEntirely = true;
                    StiOptions.Print.StorePrinterSettingsInReportAfterPrintDialog = true;

                    [...]

                    rm1.ShowWithWpf(true);
                    rm2.PrinterSettings = rm1.PrinterSettings;
                    rm2.PrintWithWpf(false);
doesn't even keep the printer selected, nevermind advanced settings like 4-in-1, etc.

I then tried to make a PrintDialog and feed the settings in to the report, but .PrintWithWpf() doesn't seem to accept as many things as .Print(), and I can't figure out how to apply my PrinterSettings object to the report.


I'm trying to think of a third way to try to get this month-end going, but I'm coming up blank.

chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

PrinterSettings and .Wpf

Post by chris.procter »

I just tried

Code: Select all

StiReport.PrintReports([reports],something, copies, PrinterSettings)
, which seemed to be exactly what I was wanting at this point, but it needs Stimulsoft.Report.Win.

If you don't mind me saying, it's very frustrating trying to figure out how to do something when half the methods listed in my auto-complete need Report.Win, but I have to code them all up and try them to find that there's a runtime error. :cry:
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

PrinterSettings and .Wpf

Post by Alex K. »

Hello,

Please check this issue on latest prerelease build from 27-10-2010.

Thank you.
Post Reply