Export using IfrxBuiltinExports
calidore
uk
I'm trying to export a report to pdf using a vb script as follows:-
Dim Reporter as object
Dim Exporter as object
Set Reporter = CreateObject("FastReport.TfrxReport")
Set Exporter = Reporter.IfrxBuiltInExports
Reporter.LoadPreparedReportFromFile("c:\Reports\MyReport.fr3")
Export.ExportToPDF("c:\Reports\MyReport.pdf", 1, 1, 1,1)
Set Reporter = Nothing
Set Exporter = Nothing
I get an error on the Set Exporter line saying that the object does not exist.
I'm using 4.0 trial version, can anyone help please??
Dim Reporter as object
Dim Exporter as object
Set Reporter = CreateObject("FastReport.TfrxReport")
Set Exporter = Reporter.IfrxBuiltInExports
Reporter.LoadPreparedReportFromFile("c:\Reports\MyReport.fr3")
Export.ExportToPDF("c:\Reports\MyReport.pdf", 1, 1, 1,1)
Set Reporter = Nothing
Set Exporter = Nothing
I get an error on the Set Exporter line saying that the object does not exist.
I'm using 4.0 trial version, can anyone help please??
Comments
I can suggest to call FastReport.exe with following arguments.
For example:
"C:\Program Files\FastReports\FastReport Studio\Bin\FastReport.exe" list.fr3 /export=list.pdf
Sorry for inconvience.