如何从C#打印Word文档

Att*_*lah 0 .net c# printing ms-word

如何从C#.NET应用程序启动文档打印?Word文档已存在于硬盘驱动器中.我只想在按钮点击事件上开始打印Word文档.

Chr*_*ett 8

 ProcessStartInfo psi = new ProcessStartInfo(wordFilename)
 {
    UseShellExecute = true,
    Verb = "print",
    RedirectStandardOutput = false,
    CreateNoWindow = true
 };

 using (Process p = new Process {StartInfo = psi})
 {
     p.Start();
     p.WaitForExit();
 }
Run Code Online (Sandbox Code Playgroud)