I never used the environment clause, maybe you accidently stored a printer name in report? * Inkey(5) or better api sleep(5000) in loops LcO = Createobject("BullZIP.PDFPrinterSettings")
Ok, now I am back to my development pc, here is some code which we use in production :
I have send email to eqeus, but no response from them yet. Usually i use command " REPORT FORM 'myreport.FRX' TO PRINTER " after i have assigned all my variables . Thanks Mike, I will read the documentation first from XFRX that i have downloaded tomorrow. * process your email using the attachment name
If !empty(attachment_name) & assigned above if PDF is successfully created =messagebox("Could Not Create PDF File.",64,"System") LoSession.ProcessReport("myreport",) & place your report form to convert to pdf here Lnretval = loSession.SetParams(filename.T.,"PDF") & please read the documentation for this commandĪttachment_name = filename+".PDF" & assign attachment name because we know this will be successful Here is a simple example, howevere, please read the documentation for the explanation and proper usage of commands: PRIVATE losession, lnretval, pdfdir, filename, attacment_nameįilename = pdfdir+alltrim(str(m.invoicenum)) & or whatever you wish to call/reference your pdf file (here I used the invoice number) Internal hint: Get the configuration for this PDF generation" Source: LoadConfig::C:\Documents and Settings\Administrator\Local Settings\Application Data\PDF Writer\Bullzip PDF Printer\runonce.ini There was an error occur in between processĮrror 1002: Unable to load settings from 'C:\Documents and Settings\Administrator\Local Settings\Application Data\PDF Writer\Bullzip PDF Printer\runonce.ini'. only test3.pdf is generated the rest test1.pdf & test2.pdf need to assign filename. REPORT FORM '\property\aa.frx' NOCONSOLE TO PRINTER LcPdf = CreateObject("BullZIP.PDFPrinterSettings")
Again, may have been misunderstandable, : writesettngs() must be last command before print out (report, word.) so try :