printing problem

hi,
In windows-98 i can set
printer.papersize = 256 ' vbcustom
printer.height = somevalue
but in win2000/professional the same code gives invalid property error and set the paper size to letter i .e. 1
pl. help
[246 byte] By [mandy2004] at [2007-11-19 7:20:34]