Dim ProcessProperties As New ProcessStartInfo()
ProcessProperties.FileName = "notepad.exe"
ProcessProperties.Arguments = "/p c:/doc.txt" 'command line arguments ''
''ProcessProperties.WindowStyle = ProcessWindowStyle.Maximized
Dim myProcess As Process = Process.Start(ProcessProperties)
當使用上面的代碼打印時,我打印了「doc.txt」。我不想在打印結束時顯示文件名打印文件(記事本)沒有打印文檔中出現的文件的名稱
你不能輕易修改方式記事本打印的文本文件。沒有必要把這個工作交給記事本,而是使用PrintDocument類來打印它。 –