Export using IfrxBuiltinExports

edited 2:17AM in FastReport Studio
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??

Comments

  • edited 2:17AM
    We are sorry, there are limitions on using FastReport with VB Script.
    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.