We are making an application that uses CrystalReports10 to create reports.
Those documents need to be printed from several printers and/or trays.
Problem we had is that a reportdocument cant be printed with the standard
printer object in .NET. A CR10 printobject must be used, and printing can be
started with the PrintToPrinter method.
Before we want to print we want to set up from which printer to print and
from which tray. To do this we use the PrintDialog. On this dialog you can
select the printer and under "properties" you can set the tray. Once the
print button is pressed we dont start the print action, but instead read out
the printersettings to know which printer was selected.
We are unable however to read out the pagesettings. Every time we read out
the pagesettings object it does not contain the settings we selected in the
dialog. My question is how can we select the correct printer and tray, and
then put them in a pagesettings and printersettings object?
Those two objects are needed for the CR10
ReportDocument.CopyFrom(PrinterSettings, PageSettings) method.
Thanks in advance,
Marcel Joemmanbaks
|