Results 1 to 2 of 2

Thread: Crystal Report 10 and PrintReport method

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2008
    Posts
    162

    Unhappy Crystal Report 10 and PrintReport method

    I am trying to print a report using the report viewer automatically without having to view it first with the following code.

    Dim presNum As String
    Dim Appl As New CRAXDRT.Application
    Dim report As New CRAXDRT.report

    Set report = Appl.OpenReport("..\..Report.rpt")

    report.ParameterFields.GetItemByName
    CrystalActiveXReportViewer1.ReportSource = report
    CrystalActiveXReportViewer1.DisplayGroupTree = False
    CrystalActiveXReportViewer1.Refresh
    CrystalActiveXReportViewer1.PrintReport
    problem is the PrintReport method is giving the following error

    Method 'PrintReport' of object 'ICrystalReportViewer10' failed
    i have been stuck on this for two days now. i need help.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Crystal Report 10 and PrintReport method

    Moved to Reporting

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