TexnicCenter and Adobe Reader 8.0
February 16th, 2007 | work | 29 Comments »Tags: Adobe-Reader, TexnicCenter
(For my Dutch speaking readers: this post containing work related stuff on a technical software communication problem is meant to help out people over the globe and therefore written in English.)
Those of you who make use of the mathematical typesetting tool MikTeX (or a similar version) combined with the use of some version of the editor TexnicCenter will have noticed that troubles occur when viewing your pdf document in the new Adobe Reader 8.0. Nothing goes wrong when opening and viewing your document, but the minute you want to close the Adobe Reader or recompile your document in the TexnicCenter editor, an “Unknown Software Exception (0xc000000d) at location 0×7813892c” is thrown. The error itself is not much to worry about, but in my case it messed up my Firefox PDF plugin. The error is due to the fact that in your TexnicCenter output profiles the DDE commands you pass through to Adobe Reader 8.0 aren’t correct. These need therefore to be altered and this can be done as follows.
Go to Build -> Define Output Profiles in the menu bar of TexnicCenter or press Alt-F7. For the profiles that build a pdf file (most likely the profiles “LaTeX => PDF” and “LaTeX => PS => PDF”) go to the viewer tab. Here you have to alter three fields:
- In the field View project’s output enable the option DDE command, delete whatever command there is in the next line and write there:
[DocOpen("%bm.pdf")][DocOpen("%bm.pdf")] - In the field Forward Search enable the option DDE command, delete whatever command there is in the next line and write there:
[DocOpen("%bm.pdf")][DocOpen("%bm.pdf")] - In the field Close document before running (La)TeX enable the option DDE command, delete whatever command there is in the next line and write there:
[DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][DocClose("%bm.pdf")]
That should solve your problems.
Update: If the problem isn’t solved, check the quotation marks. They probably weren’t copied correctly. If that doesn’t work, you could try the following lines: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")] for point 1 and 2; [DocClose("%bm.pdf")] for point 3. That’s what my newest TexnicCenter filled in automatically for me and it works with Reader 8.1.2. If you still have problems check underneath each DDE command the “Server” and the “Topic”. In those boxes “acroview” and “control” should be filled out respectively (thx Maarten for pointing that out in the commets).
The photoblog of Dirk aka Dikkie. You may expect beautiful pictures here and some chatting about photography. Welcome!
beste,
ik had net hetzelfde probleem met texniccenter en acrobat, maar deze lijken niet opgelost te zijn met uw voorstel. Zijn er andere pistes mogelijk…
Ik zou het niet weten, ik kijk het even na (ook eventuele spelfouten in de post). Ik hou je op de hoogte
@Jan: Als je copy-paste hebt gedaan, liep er inderdaad iets mis met de aanhalingstekens. Dat zou nu opgelost moeten zijn. Probeer het nog eens?
Thanks a lot , it fixed my problem
Very usefull information, thanks a lot.
@Felix, Michael: You’re welcome
Thank you! Finally decided to try to figure this one out, and your blog was just a simple search away.
excellent, I was struggling with this for last two days!
Awesome, thanks!
Great! Thank you. That solved my problem after updating to Acrobat Reader 8…
Thank you very much… this solved exactly the problem!
Thank you! This error has been a real headache for me!
Thanks a lot.
Beste,
Ik heb hetzelfde probleem, alleen met Adobe 7.0.
Ik heb in de output profiles alles gewijzigd, zonder resultaat.
Mijn file geeft aan dat het ‘damaged’ is en niet kan worden geopend.
De error message is dezelfde als jij noemt, weet je een oplossing?
Dank je, Pieternel
@Pieternel: Ik heb geen directe oplossing eerlijk gezegd. Zelf heb ik nooit problemen gehad met Adobe 7.0. Om het probleem te verhelpen kan je een aantal dingen proberen:
* De wizard van de output profiles terug laten lopen, zodat de oude profielen er terug staan (die normaal gezien zouden moeten werken met Adobe 7.0),
* Adobe 8.0 installeren,
* TexnicCenter updaten.
Succes!
I did exactly as you have suggested with the LaTeX=>PDF option still it didn’t work for me. I need further advice.
Thanks
I did exactly as you have suggested with the LaTeX=>PDF option still it didn’t work for me.
I copied all the commands in the relevant fields from my Texcniccenter
2.6 and it worked with the LaTeX=>PS=>PDF option but surprisingly not
so with LaTeX=>PDF option.
I have Texniccenter 1 Beta 7.01 -unstable (‘Greengrass’), MikTeX 2.7 and Adobe 8.0.1. I need further advice.
Thanks
@Ibrahim: That’s weird. Are you sure you didn’t make any typo’s? And did you use the correct quotation marks?
I am pretty sure I didn’t make any typo. As for the quotation marks I will check and get back at you.
Thanks
Ib
Ibrahim: Try to restart TexnicCenter if the problem with Adobe Reader occurs.
I would be worth mentioning that the server and topic of the DDE command need to be set as well. Which are “acroview” and “control” respectively. Without these settings the DDE commands mentioned above will not work, or at least dit not work for me.
Perfect, this works for me. Thanks for posting this helpful item!
PS: indeed, I double the previous post. You’ll also need to set the DDE settings to “acroview” and “control”
Thank you!
It is great!!!
Thank you very much for this page.
I have been using Texniccenter 1 Beta 7.5, MikTeX 2.7 and Adobe 8.1.4.
I did what you suggest for Latex-PS-PDF Profile.
When pdf file is open and the tex file is then built using Texniccenter, it works. However there is a problem on my Adobe Reader. Adobe Reader is open but I cannot see my pdf file.
It is like to start adobe without file.
I need to open pdf file again.
How can I solve this problem.
Info:
Latex part:
Run latex in this profile -> Checked
Stop Compilation -> Unchecked
Path to the latex Compiler: C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe
Command line Arguments: –src -interaction=nonstopmode “%Wm”
Do not use Bibtex: Unchecked
Path to Bibtex: C:\Program Files\MiKTeX 2.7\miktex\bin\bibtex.exe
Command line arguments: “%bm”
Do not use MakeIndex: Unchecked
Path to Make index: C:\Program Files\MiKTeX 2.7\miktex\bin\makeindex.exe
Command line arguments: “%bm”
Postprocessor part:
Dvips (PDF)
Executable: C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe
Arguments: -P pdf “%Bm.dvi”
Ghostscript (ps2pdf)
Executable: C:\Program Files\gs\gs8.64\bin\gswin32.exe
Arguments: -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=”%bm.pdf” -c save pop -f “%bm.ps”
Viever part:
Path of Executable: C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe
View project’s output:
DDE Command: Checked
Command: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")]
Server: acroview
Topic: control
Forward Search:
DDE Command: Checked
Command: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")]
Server: acroview
Topic: control
Close document:
DDE Command: Checked
Command: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][DocClose("%bm.pdf")]
Server: acroview
Topic: control
Thanks!! Worked like a charm!
Thanks a lot!
Thanks a lot, this solves my problem !
Worked fine! Thank you!
You’re a genius! I’ve been trying to get this to work for years. It always used to, but something changed a couple of years back and I could never get it to go again.