AndrewMozley
Programmer
I have been running Bullzip for several years within VFP. Several forms within an application offer the option of producing a report to printer, to Excel or to pdf.
The section of code to do this (slightly simplified) is :
This has now ceased to work on my development machine, either when I am running the application by starting it in a VFP session or when I am running the application as a built .exe. The resultant report is resolutely sent to the default printer.
It does however continue to work on client machines which also have Bullzip installed. I feel that I must have made some change on my development machine.
Can anyone offer suggestions as to how I can track down and correct this fault. Or - if I need to re-install Bullzip - how to do that; - it is a few years since I first did this! I have tried putting in a break point (SET STEP ON) into the code above. I can see that a variable oBullzip is created, but cannot drill down into it.
Bullzip is certainly still installed on my machine. If I ask to send a report to printer (either within my application or from another application, like WORD), that works fine. And from the VFP command window, if I execute APRINTERS(aListP), ‘Bullzip PDF Printer’ appears in the resultant array.
Several persons (e.g JRB-Bldr) have been very helpful in the past.
Thank you
The section of code to do this (slightly simplified) is :
Code:
oBullzip = CREATEOBJECT("BullZip.PDFPrinterSettings")
lBullType = TYPE('oBullzip')
IF lBullType <> "O"
MESSAGEBOX("Not able to fire up the Bullzip PDF printer; Please check that it is installed on this machine, or contact Software Support.")
RETURN .F.
ENDIF
oBullzip.SetValue("output", .zOutFileName)
oBullzip.SetValue("ShowSettings","Never")
oBullzip.SetValue("ConfirmOverwrite","No")
oBullzip.SetValue("Showpdf","No")
oBullzip.SetValue("Statusfile",lStatusfile)
oBullzip.WriteSettings(.T.)
SET PRINTER TO NAME "Bullzip PDF Printer"
REPORT FORM &lRepName NOCONSOLE TO PRINTER
This has now ceased to work on my development machine, either when I am running the application by starting it in a VFP session or when I am running the application as a built .exe. The resultant report is resolutely sent to the default printer.
It does however continue to work on client machines which also have Bullzip installed. I feel that I must have made some change on my development machine.
Can anyone offer suggestions as to how I can track down and correct this fault. Or - if I need to re-install Bullzip - how to do that; - it is a few years since I first did this! I have tried putting in a break point (SET STEP ON) into the code above. I can see that a variable oBullzip is created, but cannot drill down into it.
Bullzip is certainly still installed on my machine. If I ask to send a report to printer (either within my application or from another application, like WORD), that works fine. And from the VFP command window, if I execute APRINTERS(aListP), ‘Bullzip PDF Printer’ appears in the resultant array.
Several persons (e.g JRB-Bldr) have been very helpful in the past.
Thank you