Copy link to clipboard
Copied
Hello,
I am creating PDFs in a separate program, which uses a DDE command to automatically open the PDF in Adobe Reader once the PDF is created. This command is not successfully opening the PDF, although manually opening the PDF works fine. I know that similar problems occurred for Acrobat/Reader versions 10 and 11. These problems were fixed by changing the "server" for the DDE command from "acroview" to "acroview{A|R}{Major Version}" where A is used for acrobat, R for reader, and "Major Version" is "10" or "11". What is the syntax that should be used for version DC? I have tried "acroviewRDC" and "acroviewRdc" without success.
Any help or suggestions are greatly appreciated.
I think it may be version 15. Or 2015.
Copy link to clipboard
Copied
Did you try setting the "major version" parameter as "12"?
Copy link to clipboard
Copied
I think it may be version 15. Or 2015.
Copy link to clipboard
Copied
Setting the "major version" to 12 did not work, but setting it to "15" did work. Thus, the correct syntax for the server name for DDE commands is "acroviewR15" for reader DC or "acroviewA15" for acrobat DC.
Thanks!
Copy link to clipboard
Copied
I'm using WinEdt vs. 9 and Adobe Acrobat Pro DC.
The server name for DDE commands "acroviewA15" worked for me. (Thanks js98368238)
For detailed instructions on making this change within Winedt see: windows - Unable to use pdftex if Adobe is still open - TeX - LaTeX Stack Exchange
Copy link to clipboard
Copied
Use 15 for the version.
This is described in the updated SDK which should be out shortly.
Copy link to clipboard
Copied
This is not working for me.
Copy link to clipboard
Copied
I'm using version 5 of WinEDT and here's what the DDE section of the code looks like:
// DDEOpen('%$("AcroRead")',"acroview","control",0);
DDEOpen('%$("AcroRd32")',"acroviewR15","control",0);
DDEExe('[FileOpen("%P\%N.pdf")]');
DDEExe('[DocOpen("%P\%N.pdf")]');
DDEExe('[DocOpen("%P\%N.pdf")]');
DDEExe('[FileOpen("%P\%N.pdf")]');
DDEExe('[AppShow()]');
DDEClose;
ProcessMessages;
Copy link to clipboard
Copied
"AcroviewR15" works for me fine with Adobe Reader DC! But how i can find out, which command i have to use? Until Version XI from Adobe Reader, i could read
[HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application]
from the registry, there was correct "Acroview" for the older Versions and "AcroViewR10" for Reader X and XI. But for Reader DC this Registry Key still contains "AcroViewR10" which does not work anymore. Do I have to try and error? Is there an official way?
Copy link to clipboard
Copied
Use a utility like DDESpy or Spy++.
Copy link to clipboard
Copied
Thank you Bernd
But my problem is not how I (me personally) can find the correct command, but in the runtime environment from our customers. In our software i cannot rely on a third Party tool as DDESpy or Spy++. I have to find out, which version of Adobe Reader the customer has installed and then use the appropriate command.
I did resolve it like this: I read the Registry Key HKEY_CLASSES_ROOT\Acrobat\DefaultIcon, when i find the string '2015' in the value from this key, then i can assume that Reader DC is installed, than I use 'AcroViewR15'.
But when a Adobe releases a new Version of Reader DC i have to recode this part, which is not really elegant.
Greets
Sven
Copy link to clipboard
Copied
In your tests you should also consider if the user may have Acrobat and not Reader installed. Test with both "continuous" and "classic" tracks.
Copy link to clipboard
Copied
It's 2018 and I was facing a similar problem. To find out the right command name to use, check (as pointed out in one of the answers) the following registry key:
[HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application]
In my case it was "AcroViewA18"
Hope this helps future users!
Copy link to clipboard
Copied
Having the same problem in 2019, in particular with TeXNicCenter output profiles. Surprise surprise, I tried "acroviewA19" and it worked perfectly. Infuriating!!
Copy link to clipboard
Copied
It worked in 2020 with Acrobat Pro DC and AcroViewA20.
Thank you!
Copy link to clipboard
Copied
I have Adobe Acrobat Reader DC, version 2021.011.20039 and AcroViewA21 works.
Copy link to clipboard
Copied
For Acrobat Reader 2020 (not DC) version 2020.005.30314 AcroViewR20 is appropriate.