Solved

VB.Net ReportDocument(), option to Print to non-default Printer

Posted on 2007-03-21
2
1,071 Views
Last Modified: 2012-06-22
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
0
Comment
Question by:JMO9966
  • 2
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 18766807
Don't know if this will work.  Also it may cause problems if the printers use different printer drivers.

Look at this question
http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_20762547.html

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18865604
Glad i could help

mlmcc
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now