Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting print job properties
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Setting print job properties
Miscellaneous
Thread ID:
00808296
Message ID:
00808296
Views:
57
I have a need to be able to set various properties for print jobs at runtime from within VFP6.

The most important of these is a paper bin so that I can switch between plain and letterhead paper.

I have found a number of examples of code that I can work with, however they all rely on working with the Windows default printer. My problem is that I can foresee a time when a user has my application open twice or opens another app like Excel.

My issue is that I will set the Windows default printer, start printing, the user will switch to Excel, do something, then print, but change the printer in Excel to something else.

Is there a better way of doing this? For example PRTINFO(7) returns the paper bin selected. What is the correct way to set this?

TIA,
Simon
SJC Systems Limited
WorldSpreads Limited (www.worldspreads.com)
Next
Reply
Map
View

Click here to load this message in the networking platform