Public Sub printfile()
On Error GoTo error3
CommonDialog1.DialogTitle = "Please choose print!"
CommonDialog1.ShowPrinter
If CommonDialog1.CancelError Then
    GoTo error2
Else
    Form1.PrintForm
    Printer.EndDoc
End If
GoTo en
error2:
    MsgBox "Print fail!"
    GoTo en
error3:
    MsgBox "Can't find printer"
en: End Sub以上是我寫的打印程序. 不能打印. 請大俠幫幫看看.