我们将 POS 上的 HP LaserJet 6P 设置为默认打印机,自动选择作为纸张来源,并打印此 VBA 代码:
Dim stDocName As String
Me.Refresh
stDocName = "Retail Receipt"
Dim prtr As Access.Printer
Set Application.Printer = Nothing
Set prtr = Application.Printer
DoCmd.OpenReport stDocName, acNormal
但是,它只会在手动进纸托盘中有纸的情况下打印
有人有什么建议吗?