Posted 4 August 2017, 3:01 pm ESTYeah, it's ancient history, but it's been working fine in an enterprise app for almost 10 years.
Anyway, a question. I am trying to export a report to PDF without first displaying it in the ArViewer control. I can't seem to make it work. The standard line:
Set oPDF = New ARExportPDF
oPDF.FileName = strFileName
does not work (e.g. generates a 1kb file). However, if I let the report first generate and display in ArViewer control, the code above works great. Am I missing something simple?
So far my workaround has been to place an ArViewer control on the form behind some other control, watch for Report_End event on the report instance and then run the Export. There has got to be a better way.