printer物件的使用(編號:1111)

我要用printer物件列印套表,
想要在程式裡面設定紙張的大小,
但是怎麼試都試不出來,
width和height屬性好像都沒作用......
請問該如何寫呢?