PrinterSettings and .Wpf
Posted: Fri Oct 29, 2010 9:12 pm
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:
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.
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);
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.