var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
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 craxdrt.report
Private Sub Form_Load()
Set report = crxApplication.OpenReport(reportFileName, 1)
this may sound silly, but i had the same problem and the solution was to add ".rpt" to the file name
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