JMO9966
asked on
VB.Net ReportDocument(), option to Print to non-default Printer
Hello,
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"
LabelReportDoc.Load(report Path)
LabelReportDoc.SetDataSour ce(dsLabel )
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.
Thanks,
JMO9966
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("\"
reportPath = reportPath & "DeloLabel.rpt"
LabelReportDoc.Load(report
LabelReportDoc.SetDataSour
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.
Thanks,
JMO9966
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mlmcc