Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I print fox report to .pcl file using print driver?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00911155
Message ID:
00912063
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
----
Is there a way to programatically determine if any of the windows printers installed on the user's machine are using a PCL driver?
----

In VFP 9 you can do this easily with APRINTERS(aa,1) (new optional second parameter).

Previous to VFP 9, you would probably use a WinAPI call --
DECLARE INTEGER EnumPrinterDrivers IN   winspool.drv; 
    STRING    pName,; 
    STRING    pEnvironment,; 
    INTEGER   Level,; 
    STRING  @ pDriverInfo,; 
    INTEGER   cdBuf,; 
    INTEGER @ pcbNeeded,; 
    INTEGER @ pcReturned 
>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform