Page 1 of 1

PrinterSettings and .Wpf

Posted: Fri Oct 29, 2010 9:12 pm
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.


PrinterSettings and .Wpf

Posted: Fri Oct 29, 2010 10:00 pm
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:

PrinterSettings and .Wpf

Posted: Mon Nov 01, 2010 8:58 am
by Alex K.
Hello,

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

Thank you.