Solved

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

Posted on 2007-03-21
2
1,079 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
in Dot net,lastest version of MVC 3 24
get column names from table in vb.net 8 30
backup program with robocopy 6 23
MailAddress in vb 4 16
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

822 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