Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process p1 = new Process();
- p1.StartInfo.FileName = "C:\texlive\2012\bin\win32\pdflatex.exe";
- p1.StartInfo.Arguments = FileName;
- p1.consuleProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
- p1.consuleProcess.StartInfo.CreateNoWindow = true;
- p1.consuleProcess.StartInfo.RedirectStandardOutput = true;
- p1.consuleProcess.StartInfo.UseShellExecute = false;
- p1.consuleProcess.StartInfo.RedirectStandardInput = true;
- p1.Start();
- p1.consuleProcess.BeginOutputReadLine();
- p1.consuleProcess.OutputDataReceived += new DataReceivedEventHandler(p1_OutputDataReceived);
- p1.WaitForInputIdle(NumberofMilisecondstoWait)
- public void test()
- {
- p1.OutputDataReceived += new DataReceivedEventHandler(p1_OutputDataReceived);
- }
- void p1_OutputDataReceived(object sender, DataReceivedEventArgs e)
- {
- throw new NotImplementedException();
- }
Add Comment
Please, Sign In to add comment