命名空间:
using System.Diagnostics;
逻辑代码:
//程序
string str = Server.MapPath("~/Exes/HtmlToPdf.exe");
//参数(注:pageUrl表示访问地址,_pdfHQTemplatePath表示文件路径)
var arguments = " \"" + pageUrl + "\" " + _pdfHQTemplatePath;
Process p = Process.Start(str, arguments);
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.WaitForExit();//等待进程关闭或退出后执行以下步骤
.
.
.
.
博客涉及C#中Process类相关内容,包含其命名空间及逻辑代码,聚焦于信息技术领域的C#编程知识。


被折叠的 条评论
为什么被折叠?



