ProcessStartInfo startInfo = new ProcessStartInfo(); string switches = ""; switches += "--header-html " + path + " --footer-html " + footerPath;// + " --header-spacing 10"; startInfo.UseShellExecute = false; startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardInput = true; startInfo.RedirectStandardError = true; startInfo.CreateNoWindow = true; startInfo.FileName = Server.MapPath(ConfigurationManager.AppSettings["wkhtmltopdfsetup"].ToString()); startInfo.Arguments = switches + " " + website + " " + destinationFile; Process myProcess = Process.Start(startInfo); string error = myProcess.StandardError.ReadToEnd(); myProcess.WaitForExit(); myProcess.Close(); myProcess.Dispose(); myProcess = null;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)