Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Communicating with a printer from a VFP app
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00164219
Message ID:
00164307
Views:
16
>Hi,
>
> Is there a way to talk to a printer from a VFP application in order to get the status of the print jobs and know what file or report is being printed?
>

There are Win32 API calls that will allow you to check the status of the print spooler, examining errors reportd to the spooler, jobs queued, etc. If you want to examine how to do this in detail, and don't mind mucking about in either C or VB to get the hang of how things work, Chapter 14 in Simon's Windows NT Win32 API Superbible (Waite Group, ISBN 1-57169-089-1, C oriented) or Chapter 12 of Appleman's Visual Basic Programmer's Guide to the Win32 API (ZD Press, ISBN 1-56276-287-7, VB oriented) both cover the printing APIs quite well.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform