VB.Net ReportDocument(), option to Print to non-default Printer
Posted on 2007-03-21
I have a Crystal Report that prints from my VB.Net application.
Currently, I send the document directly to the printer, but Client is now asking for a way to select a Printer instead of going to default printer.
Here's my print event code:
Dim LabelReportDoc As New ReportDocument()
reportPath = Application.ExecutablePath
reportPath = reportPath.Substring(0, reportPath.LastIndexOf("\") + 1)
reportPath = reportPath & "DeloLabel.rpt"
Is there a way to modifiy this to load into a PrintDialog Control?
I've done a Crystal Viewer controls before and know these have a Printer option here but would like to add this dialog to my form if possible.