Hello Everyone/anyone,
I am trying to convert a vfp report into a pdf so I can then email it.
I create the report and then convert it into pdf, but when I email it, the pdf is just a blank page.
I have prompted the printer to preview the report as well and this works but the pdf returns blank.
Any suggestion to what I am doing wrong? Below is my current code:
Thanks in advance for any and all advice,
REPORT FORM dbpaitlf NOCONSOLE TO PRINTER preview
********** Create pdf file for Margin Report **********
=MESSAGEBOX('Creating Margin Report pdf.', 0+64+0, "VBPA")
lcpdfname1 = "MarginReport.pdf"
lcFilename1 = lcpath+"PDFS\" + lcpdfname1
oPDF = CREATEOBJECT("wwXFRX")
oPDF.PrintReport(lcpath + "Reports\dbpaitlf" ,lcFilename1)
*******************************************************
I am trying to convert a vfp report into a pdf so I can then email it.
I create the report and then convert it into pdf, but when I email it, the pdf is just a blank page.
I have prompted the printer to preview the report as well and this works but the pdf returns blank.
Any suggestion to what I am doing wrong? Below is my current code:
Thanks in advance for any and all advice,
REPORT FORM dbpaitlf NOCONSOLE TO PRINTER preview
********** Create pdf file for Margin Report **********
=MESSAGEBOX('Creating Margin Report pdf.', 0+64+0, "VBPA")
lcpdfname1 = "MarginReport.pdf"
lcFilename1 = lcpath+"PDFS\" + lcpdfname1
oPDF = CREATEOBJECT("wwXFRX")
oPDF.PrintReport(lcpath + "Reports\dbpaitlf" ,lcFilename1)
*******************************************************