回复 19楼 风吹过b
Public Sub prnt(X As Single, y As Single, txt As String, Optional fnt As Long = 12)
Printer.CurrentX = X + XS + XLEFT
'打印位置,页边距+总体偏差+位置
Printer.CurrentY = y + YS + YTOP
Printer.FontSize = fnt
Printer.Print txt
End Sub
这段代码是写在窗体里面还是模块里,还有页边距是不是可以去掉,直接写打印位置Printer.CurrentX = X 和Printer.CurrentY = y 不行吗