|
-
Dec 4th, 2003, 09:15 AM
#1
Thread Starter
Banned
printer dialog box
When I use my viewer to print a report it shows the printer selected that I created the report. I am trying to allow the end user to select a printer so that he / she is not restricted to the one that is set by crystal. The problem is I dont know how to get crystal's print dialog box to appear.
Anyone know how ?
Thanks,
Jon
-
Dec 9th, 2003, 09:28 AM
#2
Hyperactive Member
VB Code:
Dim crxReport As CRAXDRT.Report
crxReport.PrinterSetup (0) '<--- Brings up the Printer Dialog Box before the report.
'View the report.
CRViewer91.ReportSource = crxReport
CRViewer91.ViewReport
-
Feb 3rd, 2011, 07:49 AM
#3
Frenzied Member
Re: printer dialog box
For some reason I get the page setup first with a printer button on. How can I get it to go to the printer dialog box?
Thanks,
Jiggy!
-
Feb 3rd, 2011, 12:47 PM
#4
Re: printer dialog box
By default when you click the "Print" icon in the CR viewer it will display the print dialog. At least mine does. Try removing any printer references in your code and try something simple like this.
This is a form with nothing but the CR viewer on it.
Code:
Dim rpt As New rptWaterSoldDaily
Dim frm As New frmReports
rpt.SetDataSource(dsR.Tables("wat"))
frm.CrystalReportViewer1.ReportSource = rpt
frm.Show()
-
Feb 4th, 2011, 05:33 AM
#5
Frenzied Member
Re: printer dialog box
Thanks, all sorted now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|