Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将在我的 SPFolder 中找到的文件直接打印到打印机而不识别文件类型,那么要调用哪个 Windows API 以及如何调用它?另外,当有很多文件要同时打印时,启动打印作业的过程是什么?
您可以使用系统的文件关联来进行打印。
ProcessStartInfo psi = new ProcessStartInfo(documentFileName); psi.Verb = "Print"; Process.Start(psi);
这依赖于具有能够打印您感兴趣的所有文档类型的程序的机器。