thanks for this help but i think u have not read my problem! it is

In windows-98 i can set
printer.papersize = 256 ' vbcustom
printer.height = somevalue

i am already using this ode suesfully in win98 but i wish to migrate to win2k server/prof. and when i run the above code it gives error. this is i believe because in win2kserver/prof/xp the printer r not having ustom paper option.

pl. help