Can anybody explain how to get pdfopen/pdfclose working for Adobe Reader XI? If you could make your instructions as detailed as possible that would be really appreciated. I'm using Miktex 2.9 on Windows 7.

Tex editor Winedt version 5.5

More information on problem:

If Adobe Reader (AR) is closed and I hit Pdf Texify button on Winedt The program compiles and AR opens, however, immediately the file Acrobat OpenDoc.edt opens in Winedt editor and the following message pops up:

Cannot Open DDE link to: "C:\Program Files (x86) \Adobe\Reader 11.0\Reader\AcroRd32.edx" Service: Acroview Topic:control DDEOpen(‘%$(“AcroRead”)’,”acroview”,”control”,0);

If I want to compile my tex file again, I need to first manually close AR.

I thought it might be connected to the problem described here: http://sourceforge.net/p/miktex/bugs/2190/

but I don't know how to implement what is suggested.

  • This is usually an editor feature, could you please provide it's name?
    – Martin H
    Commented Dec 7, 2012 at 0:15
  • Welcome to TeX.SE. Commented Dec 7, 2012 at 0:16
  • 4
    Can you be more specific? Do you mean closing the file automatically because Adobe locks the file for overwriting? If so use Sumatra PDF.
    – percusse
    Commented Dec 7, 2012 at 0:16
  • 1
    See sourceforge.net/p/miktex/bugs/2190 Commented Dec 7, 2012 at 0:19
  • 3
    You should update to version 7. Version 5.5 of WinEdt is rather old ...
    – Mensch
    Commented Dec 7, 2012 at 1:52

8 Answers 8


The name of the DDE server for version Adobe Reader XI (i.e. version 11) must be AcroViewR11, cf. Big Changes in the DDE Naming Convention for Acrobat X. According to the error message you still use acroview.

In the blog entry you can also read, that for Adobe Acrobat XI the DDE server would be AcroViewA11.

  • Thank you for your answer, but could you help me with the specific tasks I need to perform? Is this a change this is required in Miktex or Winedt? I'm a complete novice.
    – Neil
    Commented Dec 7, 2012 at 2:07
  • 2
    @Neil: It has nothing to do with miktex. It is the editor (winedt) which tries to tell the pdf reader to open (or close) a pdf. Every new reader version changes the names (and sometimes the commands) needed and the author of winedt has a hard time to get things working again. There has been a message on the winedt mailing list about what to do in winedt 7 some days ago. I suggest that you ask there what to do in winedt 5.5 (if you want to keep it and if you don't want to use sumatra). Commented Dec 7, 2012 at 9:08

For those of you that are still using the Adobe Reader as a previewer with WinEdt 7 (rather than the more suitable application for this task: SumatraPDF) and are considering upgrading to AR 11 here is what you should know.

The AR 11 installer "forgets" to update the registry with the new DDE Service (in fact it puts old AcroViewR10). Consequently WinEdt will not be able to perform forward search or close the file that is being locked by AR before it is recompiled. You can read more about it on:


or google for more (it affects all applications that rely on DDE service with Adobe)...

A solution (if you still insist on using AR): In WinEdt start Options Interface. In Advanced branch open PDF Macros and double-click on Adobe Blues. At the end you will find something like:

// If you must manually modify any of these variables do it here:
// Assign(!"PDF-Caption",!"Adobe Reader");
// Assign(!"Acro-DDE_Topic",!"Control");
// Assign(!"Acro-DDE_Service",!"AcroviewR11");

Remove the comment in the last line and execute the macro (Ctrl+F9). If you have full Acrobat (rather than a free reader) then the service is probably AcroviewA11 or else just Acroview for Acrobat Pro (try a few values until it works for your version).

And remember these instructions for the next Adobe version...


I just tested it with WinEdt 7.0. It runs without changes after the installation of Reader XI.

I do not know the menu of WinEdt 5.5, but under WinEdt 7.0 you can choose Options -> Execution Modes-> PDF Viewer. There you can add 4 different pdf viewers. Choose one and search the path for your Acrobat reader. Activate it with clicking on Alternative Reader x and Apply. Afterwards I was able to display a pdf file with Acrobat Reader XI.

Configuration of pdf Viewer in WinEdt 7.0


I changed "acroview" to "AcroviewR11" in the file Acrobat CloseDoc.edt and it worked after that. The line now reads: DDEOpen('%$("AcroRead")',"AcroviewR11","control");


I'm using WinEdt (v. 5.4) and Adobe Professional 8 and I fixed my problem using this method. For completeness, here's an extract of the discussion:

From: <wkehowski <at> cox.net>
Subject: Acrobat Reader 7.0 problem
Newsgroups: gmane.editors.winedt
Date: 2005-12-02 15:31:08 GMT (7 years, 8 weeks, 9 hours and 32 minutes ago)

I finally successfully uncommented the IfLocked line in the macro Acrobat CloseDoc.edt and now Reader
closes and updates properly. I placed the macro in my Application Data/WinEdt/Exec folder. 

Thanks for your help, Alex. Rock on!

Here's the edited macro:

// -*- ASCII:EDT -*-
// Acrobat: Close PDF Document ...
//  Full description of all DDE Functions implemented by Acrobat (only
//  some are also supported by Acrobat Reader as indicated for each one):
//   https://partners.adobe.com/asn/acrobat/sdk/reg/Documentation/Core_API/CoreAPIReference.pdf

Requires(20040114); // Requires this build of WinEdt to work properly
// Close the current Document in Acrobat (Reader) using DDE

// A bug in Adobe: if another application (eg. TeXify) started it with 8.3 filename
// WinEdt has to use 8.3 filename as well or else Adobe will not close the document!
// Nothing WinEdt can do about this (8.3 filenames are obsolete anyway)...
//         DDEExe("[DocOpen(""%~P\%~N.pdf"")]");  // Has to be Opened via DDE DocOpen<>
//         DDEExe("[DocClose(""%~P\%~N.pdf"")]"); // for DocClose to work...<>
//         DDEExe("[CloseAllDocs()]"); // A bit too radical <>
         DDEExe("[DocOpen(""%P\%N.pdf"")]");  // Has to be Opened via DDE DocOpen<>
         DDEExe("[DocClose(""%P\%N.pdf"")]"); // for DocClose to work...<>
         // Sync problem - wait until the file is released:<>
         // Acrobat Reader may take some time to release the pdf file!<>
         StartWorking('Closing PDF Document...');>
         SendMessage("%$(`Acro-Title`);", $0000, $0000);>
         Loop( // Prevent an Infinite Loop: 5 sec. max<>
             IfFileLocked("%P\%N.pdf", 00110,!'ProcessMessages;Wait(99);',!'Stop;',!'Stop;');>
         //Prompt('Required Iterations: %!0.'); // Testing for Problems<>


I was facing a similar problem with WinEdt 10.2. To find out the right command name to use (to be put in Options->Execution modes->PDF Viewer->Adobe DDE Service Blues), check the following registry key:


In my case it was "AcroViewA18". After adding the registry value WinEdt seems able to interact (open/close) with Acrobat without problems.

Hope this helps future users!


go to C:\Program Files (x86)\WinEdt Team\WinEdt\Exec ther is four file colled close and open try to find DDEOpen('%$("AcroRead");',"acroviewsR10","control"); change to DDEOpen('%$("AcroRead");',"acroviewsR11","control"); then the problem will be solved


hash out the entire portion, that solved is problem.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .