Guest User

Untitled

a guest
Oct 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. process p1 = new Process();
  2. p1.StartInfo.FileName = "C:\texlive\2012\bin\win32\pdflatex.exe";
  3. p1.StartInfo.Arguments = FileName;
  4. p1.consuleProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  5. p1.consuleProcess.StartInfo.CreateNoWindow = true;
  6. p1.consuleProcess.StartInfo.RedirectStandardOutput = true;
  7. p1.consuleProcess.StartInfo.UseShellExecute = false;
  8. p1.consuleProcess.StartInfo.RedirectStandardInput = true;
  9. p1.Start();
  10. p1.consuleProcess.BeginOutputReadLine();
  11. p1.consuleProcess.OutputDataReceived += new DataReceivedEventHandler(p1_OutputDataReceived);
  12.  
  13. p1.WaitForInputIdle(NumberofMilisecondstoWait)
  14.  
  15. public void test()
  16. {
  17. p1.OutputDataReceived += new DataReceivedEventHandler(p1_OutputDataReceived);
  18. }
  19.  
  20. void p1_OutputDataReceived(object sender, DataReceivedEventArgs e)
  21. {
  22. throw new NotImplementedException();
  23. }
Add Comment
Please, Sign In to add comment