Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetPrinter and SetPrinter
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
GetPrinter and SetPrinter
Miscellaneous
Thread ID:
00293000
Message ID:
00293000
Views:
54
Hello. I find myself in need of using GetPrinter and SetPrinter API's. The reason I need to access this, is when a printer runs out of paper, the printers on the network automatically go to 'Use Printer Offline' until the user changes the setting. Due to the nature of my app(POS), I'd like to do this programatically. I know this can be done with GetPrinter(to determine if a printer is currently working offline), and SetPrinter(to actually change it). However, I can't convert the C++ instructions into VFP code very well(this has hindered my use of many APIs). I have the MSDN Library documentation on it, so if someone could show me how to convert this into VFP use of the API and possibly sample code for this application of it, I'd be much obliged. Thank you.

P.S. Our application runs on WIN98 only. I mention this only because Technet tells me this function won't work on NT(setting the work-offline part of it).
Derek J. Kalweit
Software Engineer
Microworks POS Solutions, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform