PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Hi all, I have question regarding the reload of acrobat reader ocx (pdf.ocx). If you open up a PDF file from a browser, and then launch Acrobat/Acrobat Reader, and close it, you will see the PDF file in the browser disappears. By "REFRESH"ing the browser however, you can get it back. My question is how to do it in my own application written in .NET (or any other platform if you know how). To go more in detail of the problem, this is what I have found out. I have placed a reader OCX in my application, and have a variable, say PDFControl, referencing it. When an external Acrobat program launches and closes, the pdf document in my application disappears (just like it would in a browser). I understand this could be becoz of the control running as out-of-process COM stuff. Interestingly, at this time when I call functions through PDFControl, e.g. PDFControl.Print(), no exception occurs!! Isn't the control dead already? Why won't the Interop throw an exception since the control it is wrapping no long exist? Anyways I don't really care whether it throws any exception, but really how to restart the control just like IE would do. I am very well aware that PDF.ocx is not supported by Acrobat but nonetheless the management has decided to use that. I am just trying my best to write working apps. Excuse my long-windedness, and hope to hear answers from you. Thanks!! JIA EllieMae.com To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
