Using IfrxBuiltInExports Class
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
try using the name of the export object.
Is the export object IfrxBultinExports? If it is then I can't access it using VB Script, I don't seem to be able to reference it as an object.
Thanks
I've now posted my query in the corect forum and I'm eagerly awaiting some helpful advice.
Cheers