vbscript programmers look here..

Luktar

Loyal Freddie
Joined
Jan 21, 2004
Messages
87
Hi,

i have a little problem i hope i can get some help with.

i have made a vbscript that adds a printer and share it on a server. see pastecode link below.

my problem is that it sets the paper size to Letter and i want it to be A4
have spent several hours googleing but haven't found a solution.

hope some of you out there knows how to do it..

http://pastecode.net/?action=viewpost&tag=139

documentation for prnadmin.dll
http://luktar.no-ip.com/Prnadmin.pdf
 

Ovi1

Fledgling Freddie
Joined
Apr 26, 2004
Messages
188
Quick answer :-

I usually use WMI for printer issues...

MSDN

You should be able to use paperSize to set the default to A4.

Hope that helps :)

/Edit: not sure it does help, I think that is read only :(

Not a VBS expert, and so far only used it to read settings from printers :)
 

Luktar

Loyal Freddie
Joined
Jan 21, 2004
Messages
87
wmi for 2000server suxs.. so i have to do i this way..

or if you can show me a working solution for both 2000 and 2003 i would be greatful :)
 

Alan

Fledgling Freddie
Joined
Aug 3, 2004
Messages
3,972
We cheated and set the servers region to UK rather than US.

All newly created printers then defaulted to A4 and not Letter
 

Luktar

Loyal Freddie
Joined
Jan 21, 2004
Messages
87
that works for 2003 but does it work for 2000? i haven't found that setting in 2000 but i might be blind..
 

Alan

Fledgling Freddie
Joined
Aug 3, 2004
Messages
3,972
Luktar said:
that works for 2003 but does it work for 2000? i haven't found that setting in 2000 but i might be blind..

we use 2000 servers

Control Panel
Regional Options
[Set Default] Button
Change to English (United Kingdom)
 

Users who are viewing this thread

Top Bottom