Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the Windows Default printer
Message
From
26/04/2005 15:33:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01008580
Message ID:
01008596
Views:
23
>Is there any way to set the Default Windows Printer?
>I can get a list of them from:
>aa = APRINTERS(fff)
>...but do not know how to set one of them up as the default.
>
Hi Ruddy,

Adding this to the others messages you can change only for your application only doing something as:
nwqt_prns    = APRINTERS(awprns)
nwmyprn        = 0
for ipp = 1 to nwqt_prns
    if  "MY SPECIFIC" $ upper(awprns[ipp,1])
        nwmyprn = ipp
        exit
    endif
endfor
if  nwmyprn > 0
    SET PRINTER TO NAME awprns[ipp,1]
endif
*** --> printer jobs here
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform