📅  最后修改于: 2022-03-11 14:52:01.765000             🧑  作者: Mango
'set new size
Dim mySize As New PaperSize("mySize", WidthInDots, HeightInDots)
'Set printer object default page size
'The size must supported by printer
'The actual size depents by printer resolution
myPrinter.DefaultPageSettings.PaperSize = mySize