TfrPrintTable and Export to TXT or XLS

Hi,
How can I export report using FRExports from frPrintTable ?? When I try use something like this : frPrintTable1.Report.ExportTo(frTextExport1,SaveDialog1.FileName);
I get empty txt file :-( Can you help me ??

best regards
Moskw@

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:15PM
    Hi
    call dialog first and pass name to filenameparam.
    regards ;)
  • edited 2:15PM
    Ofcourse I do it !!!!. I get empty file when I save.

    I write it in beter format:

    frPrintTable1.Report.ExportTo(frTextExport1,'C:\test.txt');

    it's beter ?? I get file test.txt but its empty (0kb).

    best regards Moskw@
  • gordkgordk St.Catherines On. Canada.
    edited 2:15PM
    here is a sample
    procedure TForm1.Button1Click(Sender: TObject);
    begin
    frprinttable1.BuildReport;
    frPrintTable1.Report.PrepareReport;
    frPrintTable1.Report.ExportTo(frTextExport1,'C:\test.txt');
    end;
    regards ;)
  • edited 2:15PM
    Hi,
    thanks i forget about frprinttable1.BuildReport; :-)

    best regards Moskw@

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.