Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows printing
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00185302
Message ID:
00185322
Views:
17
>Hi,
> This message is not really specific to FoxPro, rather to windows printing in general. I am designing an application which will print a report form both to a local printer (LPT1) and to a network printer. I'm setting up the network print capture using NetLib's N_CAPSET() and N_CAPGET() functions. My question is this: what happens if there is no driver loaded for the networked printer? Say for instance that the user's local printer is an HP, but the network printer is an Epson. Will windows95 be smart enough to install the driver if needed? Or, will I be forced to use the WIN32API called to AddPrinterDriver? If that is the case, how can I tell which print driver to install?
>
>Any help is greatly appreciated.

IMO, all you can do is let the user install whatever printers they want to print to. In VFP, I will then present the printer selection dialogue for them to change printer selection if they want. Then I run the report. The code I use is usually:
local lcPrinterName
lcPrinterName = GetPrinter()
if !empty(lcPrinterName)
   set printer to (lcPrinterName)
endif
report form MyReport to print noconsole
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform