CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2001
    Posts
    160

    Printing Report Without Printer Prompt

    I am using vb6 and Crystal 10. I am trying to print my report without displaying the report. When I do I get the printer prompt. Does anyone know how to get around this. I have had no luck searching the forum. Below is a sample of my code.

    Set rst_Crystal = g_cls_Data.SelectTicketData(g_str_Conn, g_lng_TicketNum)

    Set CRXReport = CRXApplication.OpenReport(App.Path & "\Ticket.rpt", 1)
    Set CRXDatabase = CRXReport.Database
    CRXDatabase.SetDataSource rst_Crystal, 3, 1


    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = CRXReport
    'CRViewer1.ViewReport

    CRXReport.PrintOut

    Any Help would be appreciated.

    thanks,

    Jason

  2. #2
    Join Date
    Sep 2005
    Location
    Sweden
    Posts
    11

    Re: Printing Report Without Printer Prompt

    hi,

    just add false after printout and it should work, at least it does so in CR 8

    CRXReport.PrintOut false

  3. #3
    Join Date
    Sep 2001
    Posts
    160

    Re: Printing Report Without Printer Prompt

    Thanks,
    I will give that a try.

    Jason

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

Featured