Link to home
Start Free TrialLog in
Avatar of JMO9966
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(reportPath)
LabelReportDoc.SetDataSource(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
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

Glad i could help

mlmcc