I'm using iText in an app to create and print documents to network
printers.
I launch acrobat via the command line as shown on this page...
http://partners.adobe.com/public/dev...veloperFAQ.pdf
Every once in a while, I get a generic "document failed to print"
dialog from acrobat.
I have the calling process in a try{} block but no Exception is
caught...
here is the calling code... is there a more specific catch block that
I can use that will catch the error? Something like System.IO ??
Thanks for any help...
System.Diagnostics.Process p = null;
System.Diagnostics.ProcessStartInfo psi = null;
if(param != "no printer")
{
printCnt++;
if(!acrobatInstanceExists("AcroRd32"))
{
psi = new System.Diagnostics.ProcessStartInfo();
psi.FileName = app;
psi.Arguments = param;
psi.WindowStyle=System.Diagnostics.ProcessWindowSt yle.Hidden;
}
try
{
p = System.Diagnostics.Process.Start(psi);
}
catch (Exception pex)
{
Log(pex.ToString(),w);
p.Kill();
}