0
我想将PDF文件打印成网络打印 下面的代码在哪里使用,它在本地主机(开发区)中工作正常,但在IIS服务器主机中无效 可以给任何版权问题?如何解决这个问题?我想将PDF文件打印成网络打印
private void SendToPrinter()
{
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "print";
info.FileName = @"c:\output.pdf";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();
p.WaitForInputIdle();
System.Threading.Thread.Sleep(3000);
if (false == p.CloseMainWindow())
p.Kill();
}