Results 1 to 5 of 5

Thread: Printing a Crystal report to printer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Question

    So far I've just been printing my reports to a window, but now want to print to the printer.

    I set my reportfilename and printfilename and set it to print to printer, but each time I want to print it, it asks me for an output filename. I enter it, but nothing gets printed - a file with the name I specified when asked is just created.

    Any suggestions??

    Andy

  2. #2
    Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    52
    Crystalreport1.Destination = crptToPrinter
    Crystalreport1.PrintReport

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry

    Nope, I still get the "Output Filename" Input Box?????

  4. #4
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    Are you calling the report into VB6? If so can I see your code for that.

    And can I see the code you are using to try and print the report?

    jeffro

  5. #5
    Guest
    Try the following:

    Private Sub CmdPrint_Click()
    Call View_Report("YourReportName.rpt", False, "")
    End Sub

    Sub View_Report(Report As String, XYZ As Boolean, Selform As String)
    strpath1 = "J:\MainFolder\Reports\"
    With CRPrinter

    .creport.Reset
    .creport.ReportFileName = strpath1 & "\" & Report
    .creport.Destination = crptToPrinter
    .creport.Action = 1
    .creport.WindowShowGroupTree = XYZ
    End With
    End Sub

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