Using IfrxBuiltInExports Class

edited 11:32PM in FastReport 4.0
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

  • gordkgordk St.Catherines On. Canada.
    edited 11:32PM
    what version of fr studio, vcl?
    try using the name of the export object.
  • edited 11:32PM
    I'm using FastReport Studio Designer version 4.6.79

    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
  • gordkgordk St.Catherines On. Canada.
    edited 11:32PM
    you should be posting in the studio forum.
  • edited 11:32PM
    Ok thanks for the info.

    I've now posted my query in the corect forum and I'm eagerly awaiting some helpful advice.

    Cheers

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.