Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007

    Unanswered: Export problem VB6 & craxdrt

    I'm having a problem that's probably related to the current directory set by the export.

    I have a form including crviewer 9, that previews the report I want to execute. Everything works out fine the first time I open the report and export it.

    The problem starts when I close the form, and try to print the report once more. Error " File not found (Run-time error '-2147206461 (80043ac3' " is returned.

    It doesn't seem to matter which export format I choose, tried a few. As soon as I export to a file I receive the error.

    Dim crxApplication As New craxdrt.Application
    Dim report As

    Private Sub Form_Load()

    Set report = crxApplication.OpenReport(reportFileName, 1)

    Any ideas?

  2. #2
    Join Date
    Apr 2009
    this may sound silly, but i had the same problem and the solution was to add ".rpt" to the file name

  3. #3
    Join Date
    Apr 2009
    example: Set CrxReport = crxApplication.OpenReport(App.Path & "\Reports\" & ReportName & ".rpt")

    This worked fine for me

    The report sits in a folder with the applications executable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts