We are using Crystal Reports XI (R2)
This is our current setup
To print direct to the Printer we use the PrintToPrinter method of a Crystal Report. We do not view this in the Viewer object.
It works perfect for passing the parameter, Copies, Collation, PageStart,PageEnd into this function.
We have adapted a standard Microsoft.NET PrintDialog object so that we pull the Copies, PageStart and PrinterName from this object and set in as in below code
Dim printDialog1 As New System.Windows.Forms.PrintDialog
If printDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
'Get the Copy times
Dim intCopy As Int16 = printDialog1.PrinterSettings.Copies
'Get the number of Start Page
Dim intFromPage As Int16 = printDialog1.PrinterSettings.FromPage
'Get the number of End Page
Dim intToPage As Int16 = printDialog1.PrinterSettings.ToPage
'Get the printer name
crReportDocument.PrintOptions.PrinterName = printDialog1.PrinterSettings.PrinterName
crReportDocument.PrintToPrinter(intCopy, True, intFromPage, intToPage)
The problem with this is the user thinks they can change all other properties show in this PrintDialog window, but yet it'll do nothing with the Crystal Printoff. (Except PrinterName, Copies etc.)
Guess my question is, Is there an inherent PrintDialog form associated with the Crystal Report and PrintToPrinter method. I need to get a PrintDialog form to the user when they want to print without viewing, but not the one above, as all the properties can't be passed to the PrintToPrinter method?
You help and advice would be most appreciated!!