Results 1 to 5 of 5

Thread: printer dialog box

  1. #1

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    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

  2. #2
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    VB Code:
    1. Dim crxReport As CRAXDRT.Report
    2.  
    3.    crxReport.PrinterSetup (0)    '<--- Brings up the Printer Dialog Box before the report.
    4.    'View the report.
    5.    CRViewer91.ReportSource = crxReport
    6.    CRViewer91.ViewReport

  3. #3
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    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!

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    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()

  5. #5
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    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
  •  



Click Here to Expand Forum to Full Width