Connecting Tech Pros Worldwide Help | Site Map

Send message from one EXE to another EXE

Member
 
Join Date: Aug 2009
Posts: 33
#1: 2 Weeks Ago
Hi,
I am working on a pdf creation project.
Where i am generating the pdf using iTextSharp. Previously i was using a PdfCreator Dll. But had problem of not supported exception.
Hence I am now doing that in an exe instead.
Now problem is I am invoking the exe using following code.

Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.ProcessStartInfo info = new ProcessStartInfo(filePath,fileName );
  2. Process pdfCreationProcess = new Process();
  3. pdfCreationProcess.StartInfo = info;
  4. pdfCreationProcess.Start();
  5. pdfCreationProcess.WaitForExit();
  6. pdfCreationProcess.Close();
the problem I face is if any exception happens I don’t know how to send that exception from my PdfCreatorEXE to MainApplicationExe.



Please help me in this,

Thanks,

Sachin
Reply