Problema texniccenter LaTeX => PDF

umhgamer -  
 Issa -
Hello,

I have a problem with converting a .tex file to pdf

I am using TexnicCenter

When I do build current files, everything is ok so my code must be fine

But when I click view output, it opens Acrobat but with nothing and I get the window:

An error occurred while opening this document. File not found. Then it closes and I get:

[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")] Cannot execute the command

Thank you in advance for the help because I need to finish a project and I'm stuck because of a silly mistake
Configuration: Windows Vista Internet Explorer 7.0

13 réponses

yousseflag
 
Hello,

I had the same problem. After smashing my head in front of the computer all day, I found the solution. If
your packages are installed and you see the following message in the execution window:

pdflatex.exe:GUI framework cannot be initialized
i couldn't open file name C:\........aux

you should follow these steps:

start----Miktex 2.8----maintenance----setting-----choose Yes or No (but not "Ask me first")

this solution is in the link:

http://www.miktex.org/2.8/issues

good luck.
38
Fix
 
Hello, there is another solution if the problem is indeed related to the transition from an older version to Adobe Reader X. The solutions are:
In Texniccenter>Build>Define output profile, select the profile you are using (latex=>pdf).

Choose the "viewer" tab.

In this tab, besides the path to Adobe, you have three types of outputs, if for each the checked box is "DDE", then the only thing you need to change is the "server" for each of the three output types.
If it is noted as "acroview", change it to:

acroviewR10: if you only have the reader
acroviewA10: if you have the editor.

The details of this solution can be found at the address <a>href="http://forums.adobe.com/thread/754697?tstart=0"<a>

Or also on the blog <a>href="http://www.agmonim.com/2010/12/texniccenter-and-adobe-reader-10-x"<a>
0
Petritzka
 
Thank you, Youssef!
0
kikou
 
I don't know how I can do this:
start----Miktex 2.8----maintenance----setting-----choose Yes or No (but not "Ask me first")

I think it is during the installation of Miktex that these options can be set, but once installed, how can we revert to these settings?
0
remice
 
Thank you for the solution.
Well explained, very effective :-)
0
vanessa83tp
 
I'm like Kikou, I can't figure out how to change this setting. Could someone give us the steps to follow?
Thank you.
0
mmacorp
 
For those who have the following error:

[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")] Cannot execute the command

It is because the location of Adobe Reader is not correct.

You need to press Alt+F7 in TeXnicCenter. In profiles, select LaTeX => PDF, then go to the Viewer tab.

In the field "Path of executable", click on the 3 small dots next to it. In fact, the software has everything in uppercase, you need to choose the file AcroRd32.exe.

Example of a path: C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe

Generally, this is the one most commonly used.

Once this is set, no more error messages and you will be able to view your LaTeX documents!!!
20
blackisto
 
For those who read this post and haven't solved their problem, I count myself among them. Here’s a recap of the symptoms:

- your LaTeX document compiles without errors
- you're trying to generate a PDF (LaTeX => PDF)
- you're using TeXnicCenter
- in the options (alt f7) your path to the AcroRd32.exe file is correct (notably it's not in uppercase), moreover when you click "view output," Adobe Reader opens but does nothing
- your error message is: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")] Cannot execute the command.

Solution for me: Uninstall Adobe Reader X (which is a huge piece of crap by the way), go to https://www.oldapps.com/adobe_reader.php and download version 8.1.2. Set the correct path to the AcroRd32.exe file. This path for me is:
C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe
And then the miracle happens... at least for me :) hoping to have helped!

PS: and definitely don’t update Adobe Reader :)
13
rais sofien
 
Thank you B1 Blackisto, your solution is very effective.
0
Bagui Baz
 
Here is my solution:
After installing Miktex on your PC, I ran the update wizard and it worked. For this, go to Start menu ,All programs, Miktex, Maintenance (admin), Update (admin), then follow the steps by clicking on next.
0
Dulgan
 
It is clearly not recommended to avoid using the latest versions of Adobe software, such as Adobe Reader. Indeed, older versions contain security vulnerabilities... Take it as a warning...
0
yoch
 
For Acrobat Reader X, there is a small additional step to perform (apart from checking the path), described here:
http://www.agmonim.com/2010/12/texniccenter-and-adobe-reader-10-x/

I forgot to mention an important point: it seems that you have to disable the protected mode launch of Acrobat X Reader.
http://stackoverflow.com/questions/4998678/dde-control-texnic-center
11
Kyokotsu
 
Thank you very much!!
It's true that I'm not used to going on English sites, but this is really useful for me!!!
A big thank you for being kind enough to give us all these details!
0
JC
 
These explanations from Yoch helped me solve the problem. Thank you.
0
Kal
 
Thank you very much for these details.
0
néophytedeput
 
Thank you, it worked very well for me.
0
Rafik
 
There is no need to look elsewhere; this is the detailed solution to the compilation problem in PDF when using version X of Acrobat Reader (or later).
0
Natural Tanuki
 
I quote Abdel, but as this was a response to a response, there is little chance that this solution (which worked for me) will be very visible! I just want to bring it back up!

"

Hello,

For those who have this problem, I say it's not worth uninstalling Acrobat X, nor doing certain not very useful manipulations that I have seen in previous comments; all you need to do is go to the Outfile profile (Alt+F7); then go to the "Viewer" tab in DDE, you need to go to "server" (there are 3 at the top, in the middle, and at the bottom) and replace "acroview" with "acroviewR10". With a bit of luck, the problem is solved!

Abdel

"
3
Arnaud
 
Hi, thanks because for me that's what worked. Well done!
0
Tim
 
Excellent
0
Thomas
 
This solution also worked for me, in addition to restoring the correct path for the Acrobat Reader executable
Thank you!
0
juju
 
Thank you very much, it works perfectly now!!
0
karlel
 
Likewise... it worked for me!!!
0
mayane Posted messages 137 Status Membre 16
 
Hello,

I'm having the same problem... I tinkered with everything to get the PS to work, and now the PDF isn't working anymore.
Error:
- Adobe Reader: An error occurred while opening this document. File not found
- TexnicCenter: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")] Cannot execute the command.

The .dvi and .pdf files are no longer being created.
2
Anonyme
 
Hello,
Effective, thank you
1
Moegan
 
Hello,
I have exactly the same issue as the one described by Umhgamer above... except that none of the proposed solutions solve my problem! Would you happen to know any other solutions to this problem?
0
book_tang
 
Thank you, yousseflag! It's effective.
I racked my brain trying to figure out if it was a compatibility issue with a 64-bit system.

Thank you!!
0
espog Posted messages 1 Status Membre
 
Another solution:

1) Alt+F7
2) In LaTeX Profile => PDF, select the "Viewer" tab
3) Replace "acroview" with "arcroviewR10"
0
Issa
 
This method works correctly.
1) Open the TEXNICEENTER interface and press ALT+F7. 2) CHOOSE LATEX=>PDF. 3) Then go to viewer, replace acroview with: acroviewR10 for Adobe Reader X or acroviewR11 for Adobe Reader XI.
Validate, it should work! Yay!
0
Salah-on Posted messages 2 Status Membre
 
Hi buddy; in fact, I had the same problem but the solution to your problem is very simple :lol:

What I suggest you do is to change the name of the folder '' PDF '' that you want to open and INSHALLAH this

problem will be solved definitively.
-2
Ben
 
I just had the same problem as you,
What I did in my case was I made sure to back everything up. Then I closed TexnicCenter and relaunched everything. It worked just fine.
Hang in there.
Ben
0
Yvoç
 
Exactly the same problem,

on top of that, I uninstalled MikTeX and TeXnicCenter and reinstalled everything, but the problem persists!
-2
Thomas
 
Hello,

I had the same problem, but actually you need to choose the format you want (Latex => PDF) and then compile. Normally, it should work...

I hope I answered your question

Thomas
-10
Ibgo solveur
 
Hello,

For people who have this problem, I say there's no need to uninstall Acrobat X or to do certain not very useful manipulations that I've seen in the previous comments; all you need to do is go to the Outfile profile (Alt+F7); then in the "Viewer" tab under DDE, go to "server" (there are 3 at the top, in the middle, and at the bottom) and replace "acroview" with "acroviewR10". With a bit of luck, problem solved!

Abdel
0
Fan$T
 
acroviewR10 worked for me

Thank you Abdel
0
yogini
 
For me too! Thanks for the info Abdel!
0
1986
 
Sorry, but it's not working for me :(
0
rob
 
Same issue... Any ideas? My problem is the graphics package... which is installed but not recognized.
0