Printer Api Call 
Author Message
 Printer Api Call

Hi everyone.
I'm trying to change the default printer setting under win 2000 and i'm
trying to find an api call to do it. The Printer command under the VB do
nothing, ut it works just fine under win 98 and Me. Does any one know where
to find this api???

:) thanks in advance



Sat, 09 Aug 2003 23:16:19 GMT  
 Printer Api Call
...not an api call, but works fine on w2k...

    Dim WshNetwork As Object
    Set WshNetwork = CreateObject("WScript.Network")
    WshNetwork.SetDefaultPrinter "<printer devicename>"

--
............................................
Bj?rn Holmgren
Concept / development
Framfab Integration AB
Olof Asklunds gata 10
SE-421 30 V?stra Fr?lunda, Sweden
Office +46 31 709 50 00
Mobile +46 706 84 01 29
Fax +46 31 709 50 99

............................................


Quote:
> Hi everyone.
> I'm trying to change the default printer setting under win 2000 and i'm
> trying to find an api call to do it. The Printer command under the VB do
> nothing, ut it works just fine under win 98 and Me. Does any one know
where
> to find this api???

> :) thanks in advance



Sat, 09 Aug 2003 23:49:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printer API call (long)

2. Help Wanted with Printer API call's

3. Help wanted with Printer API calls, getting the PageCount ?????

4. PROBLEM: Adding a printer via API, then creating a printer Share via API (source included)

5. API Calls to Change the Default Printer

6. Using API-call to find printers

7. Printer Orientation calling api

8. Changing default printer using API calls

9. Printer selection via API call

10. Should I use Windows API Printer calls?

11. API Call to open printer properties in excel

12. Setting printer's paper bin and duplex with API calls

 

 
Powered by phpBB® Forum Software