0 Replies Latest reply on Mar 22, 2011 4:25 AM by namesar

    Error when opening PDF file in eclipse browser with Adobe Reader X(10.0)

    namesar

      Hi,

      In my project, I need to open a PDF in my application. I do this using SWT browser (pls refer below code snippet.) This use to work fine untill Adobe 9, but with Adobe Reader X (10.0) I get error when I try to open second PDF file. The error message is "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again (523:523). After few mins, I get another pop as "Acrobat failed to connect to a DDE server".

      I notice that with Adobe 9, the task manager didn't list seperate process if I load multiple PDF files in the browser but with 10X, Adobe creates multiple processes and doesn't delete/remove/refresh previous ones. This might be the issue.

      Any advice is highly appreciated.

      Thanks,Naveen

      browser = new Browser( parent, SWT.NONE );
      try
      {
      URI uri = previewFile.toURI();
      String url = uri.toURL().toString();
      browser.setUrl( url );
      browser.setBounds( browser.getParent().getClientArea() );
      browser.refresh();
      }
      catch( MalformedURLException e )
      {
      logger.error( e.getClass().getName(), e );
      }