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 12:36PM
    check that you have preset all the required properties of the export component before calling it.
    ;)
  • edited 12:36PM
    maybe I missed somethng. What else needs to be set besides Filename?

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.