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
Miscellaneous
Thread ID:
00808296
Message ID:
00811615
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
Here is some help from the VBA guys. See if you can get this to work in VFP. http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform