GeneralTeXnicCenter doesn't open Adobe Reader X

General information and discussion about TeXnicCenter
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

TeXnicCenter doesn't open Adobe Reader X

Post by Singularity »

Hi everyone. I installed MikTex 2.9 and TexnicCenter on my friend's new PC (and re-installed them on mine). We can compile Latex code into PDF, but Acrobat won't open. I had this problem before, but the fix I used last time is not working. I cannot find anything that will help me. Can someone help me resolve this. I exported my PDF output profile, if it helps.
Thanks.

I am using Win7(x64) Ultimate, Miktex 2.9, TexnicCenter 1.0 SR1.

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<txcop:outputProfiles version="1" xmlns:txcop="http://schemas.ToolsCenter.org/TeXnicCenter/OutputProfiles.xsd">
	<outputProfileList>
		<outputProfile name="LaTeX => DVI" stopOnLatexError="false">
			<texCommand execute="true" path="latex.exe" arguments="--src -interaction=nonstopmode "%Wm""/>
			<bibTexCommand execute="true" path="bibtex.exe" arguments=""%bm""/>
			<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%bm""/>
			<postProcessors/>
			<viewer path="YAP.EXE" closeBeforeCompilation="false">
				<viewProjectCommand type="commandLine">
					<commandLineCommand path="YAP.EXE" arguments="-1 "%bm.dvi""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewProjectCommand>
				<viewCurrentFileCommand type="commandLine">
					<commandLineCommand path="YAP.EXE" arguments="-1 -s %l"%Wc" "%bm.dvi""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewCurrentFileCommand>
				<viewCloseCommand type="commandLine">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewCloseCommand>
			</viewer>
		</outputProfile>
		<outputProfile name="LaTeX => PS" stopOnLatexError="false">
			<texCommand execute="true" path="latex.exe" arguments="--src -interaction=nonstopmode "%Wm""/>
			<bibTexCommand execute="true" path="bibtex.exe" arguments=""%bm""/>
			<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%bm""/>
			<postProcessors>
				<processor name="DviPs" path="dvips.exe" arguments=""%Bm.dvi"" inputFile="" outputFile=""/>
			</postProcessors>
			<viewer path="" closeBeforeCompilation="false">
				<viewProjectCommand type="commandLine">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewProjectCommand>
				<viewCurrentFileCommand type="commandLine">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewCurrentFileCommand>
				<viewCloseCommand type="commandLine">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="" server="" topic="System" command=""/>
				</viewCloseCommand>
			</viewer>
		</outputProfile>
		<outputProfile name="LaTeX => PDF" stopOnLatexError="false">
			<texCommand execute="true" path="pdflatex.exe" arguments="-interaction=nonstopmode "%pm""/>
			<bibTexCommand execute="true" path="bibtex.exe" arguments=""%bm""/>
			<makeIndexCommand execute="true" path="makeindex.exe" arguments=""%bm""/>
			<postProcessors/>
			<viewer path="ACRORD32.EXE" closeBeforeCompilation="true">
				<viewProjectCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="ACRORD32.EXE" server="acroview" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
				</viewProjectCommand>
				<viewCurrentFileCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="ACRORD32.EXE" server="acroview" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
				</viewCurrentFileCommand>
				<viewCloseCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="ACRORD32.EXE" server="acroview" topic="control" command="[DocClose("%bm.pdf")]"/>
				</viewCloseCommand>
			</viewer>
		</outputProfile>
	</outputProfileList>
</txcop:outputProfiles>
Last edited by Singularity on Mon Sep 26, 2011 10:31 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TeXnicCenter doesn't open Adobe Reader X

Post by localghost »

Singularity wrote:[…] I exported my PDF output profile, if it helps. […]
You exported all of your three build profiles. And during this process all paths have been removed because you forgot to uncheck an important box. Furthermore it would have been better to attach a small capture of the concerned dialog window instead of the XML code. So at least tell us which version of the Ad0be Reader you are using.


Thorsten
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

TeXnicCenter doesn't open Adobe Reader X

Post by Singularity »

localghost wrote:
Singularity wrote:[…] I exported my PDF output profile, if it helps. […]
You exported all of your three build profiles. And during this process all paths have been removed because you forgot to uncheck an important box. Furthermore it would have been better to attach a small capture of the concerned dialog window instead of the XML code. So at least tell us which version of the Ad0be Reader you are using.


Thorsten
That's funny, I thought I specifically selected the PDF for export. I will do it again without the 'hide path' checked.

Using Adobe Reader x version 10.1.1.

The error varies slightly. Sometimes "[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]" (pictured) pops up right away. Sometimes TXC hangs for about a minute, then the same message pops up, and sometimes I get the message twice.
Capture.PNG
Capture.PNG (23 KiB) Viewed 26035 times
My Latex => PDF output profile:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<txcop:outputProfiles version="1" xmlns:txcop="http://schemas.ToolsCenter.org/TeXnicCenter/OutputProfiles.xsd">
	<outputProfileList>
		<outputProfile name="LaTeX => PDF" stopOnLatexError="false">
			<texCommand execute="true" path="C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\pdflatex.exe" arguments="-interaction=nonstopmode "%pm""/>
			<bibTexCommand execute="true" path="C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\bibtex.exe" arguments=""%bm""/>
			<makeIndexCommand execute="true" path="C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\makeindex.exe" arguments=""%bm""/>
			<postProcessors/>
			<viewer path="C:\PROGRAM FILES (X86)\ADOBE\READER 10.0\READER\ACRORD32.EXE" closeBeforeCompilation="true">
				<viewProjectCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="C:\PROGRAM FILES (X86)\ADOBE\READER 10.0\READER\ACRORD32.EXE" server="acroview" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
				</viewProjectCommand>
				<viewCurrentFileCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="C:\PROGRAM FILES (X86)\ADOBE\READER 10.0\READER\ACRORD32.EXE" server="acroview" topic="control" command="[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]"/>
				</viewCurrentFileCommand>
				<viewCloseCommand type="dde">
					<commandLineCommand path="" arguments=""/>
					<ddeCommand path="" server="acroview" topic="control" command="[DocClose("%bm.pdf")]"/>
				</viewCloseCommand>
			</viewer>
		</outputProfile>
	</outputProfileList>
</txcop:outputProfiles>
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: TeXnicCenter doesn't open Adobe Reader X

Post by localghost »

I must have been not clear enough in my formulations. Anyway, all necessary informations are present. Do the settings as shown in the attachment. Note that you have to replace "acroview" in all three areas with "acroviewR10" for »Server« settings.
Attachments
Settings for the PDF viewer in TXC2alpha3 (Build 1118).
Settings for the PDF viewer in TXC2alpha3 (Build 1118).
TXC2alpha3-Profiles-PDFviewer.png (46.31 KiB) Viewed 26030 times
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

TeXnicCenter doesn't open Adobe Reader X

Post by Singularity »

Thanks, ghost. I misunderstood "concerned dialog".

I made the changes you recommend and everything works fine. I swear that is the same changes I made last night. Oh well.

Here is how my output profile viewer tab looks now (you probably don't care at this point, but I'm posting it for my own records):
OutputProfileViewer.png
OutputProfileViewer.png (44.49 KiB) Viewed 26029 times
Except for the program file path (which, obviously, would not match), our images are the same.
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Re: TeXnicCenter doesn't open Adobe Reader X

Post by Singularity »

Users of this thread may be interested to know that after applying this solution, the problem still occurs on occasion. It seems to occur if Reader is not already open when you start TXC, or if you open the target PDF file separately from the TXC build process.

This issue isn't slowing me down enough for me to pursue a solution. But if I ever do stumble upon a fix, I will post it here (hopefully, so will whoever is reading this thread).
Ofboir
Posts: 7
Joined: Thu Oct 06, 2011 10:41 am

TeXnicCenter doesn't open Adobe Reader X

Post by Ofboir »

Hi Singularity

I had the exact same problem. After a quick research, I found these options, and now it always work ! Give it a try.
txc-adobe.png
txc-adobe.png (25.61 KiB) Viewed 25847 times
astock
Posts: 1
Joined: Sun Oct 30, 2011 5:24 pm

Re: TeXnicCenter doesn't open Adobe Reader X

Post by astock »

If you still have the problem after change the DDE servername to acroviewR10 or acroviewA10 try in Adobe Reader X uncheck "Enable Protected Mode at startup" in Edit > Preferences > General.

Regards,
dandus
Posts: 10
Joined: Thu Mar 31, 2011 12:41 pm

Re: TeXnicCenter doesn't open Adobe Reader X

Post by dandus »

Mine won't close when i give the compile command a second time, and thus the compiler stops immediately. I have to close the pdf by hand for the compiler to work. Any ideas on how to fix it?

. I tried doing as astock said but it didn't work.
Attachments
Immagine.png
Immagine.png (48.37 KiB) Viewed 25536 times
Bennieboj
Posts: 1
Joined: Sun Nov 27, 2011 11:21 am

TeXnicCenter doesn't open Adobe Reader X

Post by Bennieboj »

dandus wrote:Mine won't close when i give the compile command a second time, and thus the compiler stops immediately. I have to close the pdf by hand for the compiler to work. Any ideas on how to fix it?

. I tried doing as astock said but it didn't work.
I created this account, just to respond to this topic and (hopefully) fix your problem.
In the Close DDE dialog, you should first open the file, so adobe reader knows what file you talking about and then you can close it.

Code: Select all

[DocOpen("%bm.pdf")][DocClose("%bm.pdf")]
It worked on adobe reader 10.1 on Windows7 Ultimate (just for reference, should probably work on all OSes I guess...)
I got the idea here: http://vim.wikia.com/wiki/Use_dde_to_cl ... _compiling

;)
Post Reply