我的意思是command按钮打印一临时文件,此文件为程序运行时产生的,有规定的路径.

解决方案 »

  1.   

    按行读出内容,Printer.Print "text"  就OK啦。
      

  2.   

    用API函数,ShellExecute Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long参数为:me.hwnd,Print,文件名及路径,vbnullstring,vbnullstring,1
      

  3.   

    是否可以通过运行DOS命令行<<prn什么的,忘了