export as HTML without dialog = error

Hello,

when I use the following code (FR 3.20, Delphi 7), it works good.

frm.frxHTMLExport1.FileName := ExportFile;
frm.frxHTMLExport1.ShowDialog := true;
frm.frxRpt.Export(frm.frxHTMLExport1);

but if I make this change, so that ShowDialog = false...

frm.frxHTMLExport1.FileName := ExportFile;
frm.frxHTMLExport1.ShowDialog := false
frm.frxRpt.Export(frm.frxHTMLExport1);

...then the .nav and .main output files are never created, and my HTML is invalid.

I am using the "all in one directory" option with the html export. Seems there is an error in the fastreport code somewhere, I tried to find it, but could not. any ideas?

thanks

John


Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:24PM
    check that you have preset all the required properties of the export component before calling it.
    ;)
  • edited 10:24PM
    maybe I missed somethng. What else needs to be set besides Filename?

Leave a Comment