DDE control TeXnicCenter

Bill picture Bill · Feb 15, 2011 · Viewed 22.8k times · Source

I use TeXnicCenter for LaTeX and would like to have the DDE controls working to easily view the pdf versions. Acrobat X seems to have changed the servername and this is breaking things. I tried "AcroViewR10" or "acroviewR10" and other combination, but still it does not work.

As a work around, using command line argument "%bm.pdf" works, but I manually need to close the pdf everytime before recompiling. So, it takes an extra click or so.

Can anyone give some insight to solve the problem either by fixing DDE or how to close the pdf automatically when it is recompiled?

Answer

user330167 picture user330167 · Apr 5, 2011

Actually, the answers from Martyn and Adam Nellis solved this problem. Thanks a lot, folks. I am just putting it step by step, so someone else can use it.

Step1: Adobe ReaderX In Adobe Reader X, go to Edit>Preferences>General and uncheck "Enable Protected Mode at startup".

Step2: TeXnicCenter Go to Build->Define Output Profiles-> choose "Latex to PDF" -> Viewer tab

2.1. For "View Project's Output" & "Forward Search"

  • Command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
  • Server: AcroViewR10 Topic: control

2.2. For "Close Document"

  • Command: [DocClose("%bm.pdf")]
  • Server: AcroViewR10 Topic: control (use this option even if you use Adobe Reader 11)