Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Spooler
Message
 
To
15/04/1998 07:15:00
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00091841
Message ID:
00092259
Views:
24
>>>Can someone tell how to programmaticaly access the information
>>>in the Print Setup Dialog? I have an app that I need to alternate
>>>between Novell 4.x and NT print queues based on certain conditions.
>>>
>>>I would like to just evaluate a condition and then shift printing
>>>from one queue to the next. No user intervention.
>>>
>>>The workstation OS's are W95 and NT4.0
>>>
>>>thanks,
>>>
>>>ray
>>
>>Ray,
>>
>>Not totally sure if this is what you're looking for, but take a look at APRINTERS(). It loads an array with the printers set up on the workstation. Beyond that, there are ways with calling into that Windows API that will get you that information plus the physical driver that is being used and what it is captured to. If you want something like that, drop me a line and I can send you some code.
>>
>>Rod
>I've looked at Getprinter() and Aprinter(). What I need to do is to have
>a person start their app printing at Queue = \\Server\Fred then under
>certain conditions switch queue to queue = \\server\bill, then back to
>queue = \\server\fred.
>
>I'd be gratefull for whatever code/suggestions you have.
>
>thanks,
>ray

Ray,

It sounds like you might want to take a look at NetLib 5.0 Network and Print Management Toolkit. You can find information at http://www.hallogram.com/netlib/visual/network.html on it. Basically it allows you to set print queues on the fly from within VFox. Otherwise, you end up having to do it with Run commands, and it get's to be a little hairy to attempt. It's an elegant solution to look at.

Rod Lewis
Rod Lewis
Previous
Reply
Map
View

Click here to load this message in the networking platform