FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FASTREPORT how to export Report in “silent” mode
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
FASTREPORT how to export Report in “silent” mode
Posted: Sat Aug 29, 2009 12:54 PM

Does someone know how to export a Report in “silent” mode.
I try:
oFr:SetProperty("PDFExport", "FileName", "Myfile.pdf")
oFr:SetProperty("PDFExport", "OpenAfterExport", .f.)
oFr:PrepareReport()
oFr:DoExport("PDFExport")

But the dialog for inserting the number of pages and selecting the path and document are appearing.

Thanks in advance
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FASTREPORT how to export Report in “silent” mode
Posted: Sat Aug 29, 2009 01:57 PM
Thanks to Marco. This is the solution:
oFr:SetProperty("PDFExport", "ShowDialog",.f.)

Code (fw): Select all Collapse
oFr:SetProperty("PDFExport", "FileName", "\Myfile.pdf")
oFr:SetProperty("PDFExport", "OpenAfterExport", .f.)
oFr:SetProperty("PDFExport", "ShowDialog",.f.)
oFr:PrepareReport()
oFr:DoExport("PDFExport")


Best regards,
Otto

Continue the discussion