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.