Hey there,
I found this code which works very well to generate a pdf from a report using FoxyPreviewer :
SET PROCEDURE TO LOCFILE("FoxyPreviewer.App") ADDITIVE
LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.App"
loReport = CREATEOBJECT("PreviewHelper")
WITH loReport AS ReportHelper
.lOpenViewer = .f.
.AddReport(m.raport, "NODIALOG")
.cDestFile = cale_aplicatie + raport + ".pdf" && Use to create an output without previewing
.RunReport()
ENDWITH
loReport = NULL
Can someone tell me how to change this code to use a label instead of a "report form" as the source?
Thank you,
Costin
I found this code which works very well to generate a pdf from a report using FoxyPreviewer :
SET PROCEDURE TO LOCFILE("FoxyPreviewer.App") ADDITIVE
LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.App"
loReport = CREATEOBJECT("PreviewHelper")
WITH loReport AS ReportHelper
.lOpenViewer = .f.
.AddReport(m.raport, "NODIALOG")
.cDestFile = cale_aplicatie + raport + ".pdf" && Use to create an output without previewing
.RunReport()
ENDWITH
loReport = NULL
Can someone tell me how to change this code to use a label instead of a "report form" as the source?
Thank you,
Costin