发布网友 发布时间:2022-04-23 20:34
共1个回答
热心网友 时间:2022-04-27 10:50
Printer.Print richtextbox.text
With Printer
.PaperSize = vbPRPSA4 ' 设置为A4纸
.ScaleMode = vbMillimeters
.FontBold = True
.ScaleLeft = -20
.ScaleTop = -25
.ScaleWidth = 210
.ScaleHeight = 297
UseWidth = .ScaleWidth - Pageleft - Pageright
UseHeight = .ScaleHeight - Pageheader - Pagefooter
.CurrentX = 0
.CurrentY = 0
.DrawWidth = 5
End With