Discussion:
Problem with DDEOpen and Adobe X and WinEdt 6.0
Larry
2011-02-27 22:06:06 UTC
Permalink
Hi,

I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the previously
created document still open:

Cannot Open DDE Link to:
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-DDE_Topic');");


None of the fixes posted earlier provide any help for the newest build.

If I replace 'Acro-DDE_Service' with 'acroviewR10' I don't get the
error message, but it says "I can't write on file `name.pdf'.
Please type another file name for output: "


Has anyone figured out a fix for this problem?

Thanks,

Larry
Karl Koeller
2011-02-28 05:26:48 UTC
Permalink
Post by Larry
Hi,
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the previously
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-DDE_Topic');");
None of the fixes posted earlier provide any help for the newest build.
If I replace 'Acro-DDE_Service' with 'acroviewR10' I don't get the
error message, but it says "I can't write on file `name.pdf'.
Please type another file name for output: "
Has anyone figured out a fix for this problem?
Thanks,
Larry
Download the latest WinEdt build. This problem has been solved.......
Larry
2011-03-05 21:24:18 UTC
Permalink
Post by Karl Koeller
Download the latest WinEdt build. This problem has been solved.......
The newest build, Build: 20110218 (v. 6.0), still has the problem described
above. Has anyone come up with a solution for this problem?

Thanks,
Larry
WinEdt Team
2011-03-05 21:35:03 UTC
Permalink
Larry,
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the previously
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-DDE_Topic');");
None of the fixes posted earlier provide any help for the newest build.
If I replace 'Acro-DDE_Service' with 'acroviewR10' I don't get the
error message, but it says "I can't write on file `name.pdf'.
Please type another file name for output: "
Has anyone figured out a fix for this problem?
Try:

DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");

Default macros should automatically assign this value to
Acro-DDE_Service but there is no telling what is in your registry.

In particular, when Adobe changed DDE Service in version 10 they
neglected to update the relevant key in the registry and this is
causing lots of problems for other applications that use DDE to
communicate with Acrobat (or Reader)...

best regards,

alex
Larry
2011-03-07 00:34:43 UTC
Permalink
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
Awesome, this solution worked perfectly! Thanks Alex!
Adi Ben-Israel
2011-03-08 04:32:25 UTC
Permalink
Where do I make this change? please specify
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
Larry
2011-03-10 00:54:15 UTC
Permalink
Post by Adi Ben-Israel
Where do I make this change? please specify
  DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
This is line 58 in the file "PDFCloseDoc.edt" located in C:\Program Files\WinEdt
Team\WinEdt 6\Exec\PDF
Adi Ben-Israel
2011-03-10 03:06:46 UTC
Permalink
Thanks!
Post by Larry
Post by Adi Ben-Israel
Where do I make this change? please specify
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
This is line 58 in the file "PDFCloseDoc.edt" located in C:\Program Files\WinEdt
Team\WinEdt 6\Exec\PDF
Seva
2011-05-10 10:08:29 UTC
Permalink
Post by WinEdt Team
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-
DDE_Topic');");
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
I have the very same problem as described above, except that I use WinEdt 5.5,
and the last line of the error message that I get is
DDEOpen('%$("AcroRead")',"acroview","control");
This is line 36 of the file "Acrobat CloseDoc.edt", and I suppose that just
modifying this line appropriately should solve the problem. Is this correct?
Exactly how should I modify it? (An expert would probably have figured
this out from the answer given above, but it doesn't tell much to a non-expert
like me...)

Many thanks in advance!
Maheswaran, M
2011-05-10 15:13:08 UTC
Permalink
Hi!

Here are the replies that I sent to the list on February 19, 2011, to the same question:

Message 1:

I am using Winedt 5.5.
When I upgraded to Acrobat 10, I had the same DDE problem.
After scouring the web I found the following solution:

I went to the file .....\Winedt Team\Winedt\exe\Acrobat OpenDoc.edt .... Line 106
and I changed DDEOpen('%$("AcroRead")',"acroview","control",0);
to DDEOpen('%$("AcroRead")',"acroviewR10","control",0);

Now, I don't have the DDE problem. I hope it works for you.

Message 2:

Further to my previous message, the change to acroviewR10 is for those using the Reader.

If someone uses the full Acrobat I believe that the change should be to acroviewA10.

Mahes

-----Original Message-----
From: Seva [mailto:***@mail.ru]
Sent: Tuesday, May 10, 2011 5:08 AM
To: winedt+***@wsg.net
Subject: [WinEdt] Re: Problem with DDEOpen and Adobe X and WinEdt 6.0
Post by WinEdt Team
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-
DDE_Topic');");
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
I have the very same problem as described above, except that I use WinEdt 5.5,
and the last line of the error message that I get is
DDEOpen('%$("AcroRead")',"acroview","control");
This is line 36 of the file "Acrobat CloseDoc.edt", and I suppose that just
modifying this line appropriately should solve the problem. Is this correct?
Exactly how should I modify it? (An expert would probably have figured
this out from the answer given above, but it doesn't tell much to a non-expert
like me...)

Many thanks in advance!
John Baldwin
2011-05-31 14:20:26 UTC
Permalink
Post by Larry
Post by WinEdt Team
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-
DDE_Topic');");
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
Many thanks in advance!
I have reduced previous post to reflect my current problem. I am using winedit
build 20101025 on windows 7.

This fix worked earlier but adobe upgrades have destablized it. What should I do
now. I a winedt upgrade in order?
Maheswaran, M
2011-05-31 14:56:07 UTC
Permalink
The fix that I used was for Acrobat X with Winedt 5.5. I believe that the fix for Acrobat X with Winedt 6 is somewhat different. Someone else might have posted the fix for the latter.

Mahes

-----Original Message-----
From: John Baldwin [mailto:***@uic.edu]
Sent: Tuesday, May 31, 2011 9:20 AM
To: winedt+***@wsg.net
Subject: [WinEdt] Re: Problem with DDEOpen and Adobe X and WinEdt 6.0
Post by Larry
Post by WinEdt Team
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-
DDE_Topic');");
Post by WinEdt Team
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
Many thanks in advance!
I have reduced previous post to reflect my current problem. I am using winedit
build 20101025 on windows 7.

This fix worked earlier but adobe upgrades have destablized it. What should I do
now. I a winedt upgrade in order?
WinEdt Team
2011-05-31 18:50:09 UTC
Permalink
Mahes, John,
Post by Maheswaran, M
The fix that I used was for Acrobat X with Winedt 5.5. I believe
that the fix for Acrobat X with Winedt 6 is somewhat different.
Someone else might have posted the fix for the latter.
The fix is essentially the same for all versions of WinEdt:

DDE Service Acroview has to be changed to AcroviewR10 or
AcroviewA10 (depending on whether you are using Adobe Reader of
Acrobat). WinEdt 6 is better at automatically adjusting the value
but that can fail if Adobe decides to change things again or if
your registry contains conflicting values.
Post by Maheswaran, M
Post by WinEdt Team
Post by Larry
I am using WinEdt 6 [Build: 20110119 (v. 6.0)] and Adobe Acrobat X Pro,
and I get the following error message if I run PDFTexify with the
"C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
Service: Acroview
Topic: Control
DDEOpen("%$('PDF-View')","%$('Acro-DDE_Service');","%$('Acro-DDE_Topic');");
DDEOpen("%$('PDF-View')","AcroviewA10","%$('Acro-DDE_Topic');");
This fix worked earlier but adobe upgrades have destablized it.
What should I do now. I a winedt upgrade in order?
The above manual fix actually refers to WinEdt 6!

WinEdt upgrade will not likely change anything and I doubt that
Adobe upgrades "destabilized" this functionality (whatever this may
mean). Check the error message carefully and see if it is the same
as above. In particular, if Service in the message is again
"Acroview" then your fix was somehow overwritten (it does not
happen by itself but then I don't know what happens on your
machine).

Since Adobe X can no longer reopen a document at the previous
position after it was recompiled you may simply consider closing
Adobe manually before you try to recompile and your problem with
locked file will be solved. I suspect that in one of the future
versions of Adobe DDE functionality will change again and
eventually it will probably be silently dropped all together. There
are other PDF viewers more suitable for working with externally
compiled pdf files (light-weight Sumatra or PDF-XChange come to
mind -- and many others are being developed these days). If for
some reason you need real Adobe to preview working versions of your
documents then you will have to put up with some Adobe blues
because Acrobat is not (and never was) designed as a working
previewer for pdf documents created by TeX. New features in Adobe X
have more to do with security of Adobe's corporate clients than
anything that would benefit TeX users:-)

Hope this explains things.

Best regards,

alex
tsunade
2012-06-13 11:10:06 UTC
Permalink
I did the change suggested in Acrobat OpenDoc.edt and it works smoothly now.
Many thanks!!
Etienne
2013-01-30 08:50:43 UTC
Permalink
Thanks !
this post solved this irritating problem of mine!
All the best,
Etienne
j
2013-02-21 17:38:25 UTC
Permalink
for Acrobat Reader11 replace
"DDEOpen('%$("AcroRead")',"acroview","control",0);"
To
"DDEOpen('%$("AcroRead")',"acroviewR11","control",0);"

Alu
2012-09-07 16:08:37 UTC
Permalink
I am using Adobe X Pro and WinEdt 6, and I read that the suggested solution
worked for some, but it didn't for me. Can you please help? Thanks so much for
your time

Alu
WinEdt Team
2012-09-08 21:04:06 UTC
Permalink
Alu,
Post by Alu
I am using Adobe X Pro and WinEdt 6, and I read that the suggested
solution worked for some, but it didn't for me. Can you please
help? Thanks so much for your time
Perhaps if you can tell us what exactly you have done so far and
what happens, somebody can help you with this. Usually something
like

Assign(!"Acro-DDE_Service",!"AcroviewA10");

will fix the problem with Acrobat X...

Best regards,

alex

ps. Below is the explanation and an advice when it comes to
previewing working versions of pdf documents created by TeX:

The problem is that good people at Adobe changed DDE service from
Acroview to AcroviewR10 or AcroviewA10. It affects ALL applications
that rely on Adobe as PDF Viewer (google AcroviewR10 and you'll see
plenty of stuff on that). Adobe quotes "security reasons" for the
change(???). Furthermore, in Adobe 10 it is no longer possible to
reopen a recompiled pdf file at the previous position. I call this
"Adobe Blues" and I am afraid there is no cure for it. A previewer
that locks a pdf file is not (and never was) designed or suitable
for Edit-> Compile-> Preview cycle. I gave up on Adobe altogether
as did many other TeX users.

Luckily there are now better alternatives available. There is a
free pdf viewer called SumatraPDF. It is designed for TeX and it
supports very precise forward and inverse search based on synctex
technology (a part of recent MiKTeX or TeX Live). In WinEdt 7 it is
easy to define alternative pdf viewers without changing the default
program on your system. I suggest you give it a try: recent
versions are pretty decent and easy to use and install.

This from Help in WinEdt 7:

For most TeX users SumatraPDF is the most suitable working
previewer for pdf files. It is fast, light-weighted, it does not
lock pdf files that it is previewing, and it supports forward and
inverse search. In other words: it is problem-free! These are the
properties that will be appreciated when you are compiling and
previewing your TeX documents. You don't have to make SumatraPDF
the default PDF viewer on your system: WinEdt's Execution Modes
dialog allows you to define alternative PDF viewers.

PDF-XChange and Adobe Reader or Acrobat do lock pdf files. This
means that your documents cannot be recompiled until they are
released by the viewer. WinEdt provides a macro (PDF Close) that
does its best to take care of that. However, Adobe has a habit of
changing the DDE interface properties and the action can easily
fail (depending on your version of Adobe). If for some reason you
must use a previewer like this you may need to modify the macro
scripts for your version of Adobe (should the defaults fail).

Remember that the pdf file cannot be recompiled until it is
released by the viewer that locks its input files! As the last
resort (if you cannot modify PDF Close macro to do what you
want): close the pdf document manually before compilation and
reconsider suitability of your viewer for edit-compile-preview
cycle...

To make things worse, Adobe 9 (or later) can no longer open pdf
documents at the previous position after they have been modified
(recompiled). Forward search can somewhat remedy this shortcoming
but even so the situation is far from perfect and for most TeX
users Adobe is just not the best choice for working PDF viewer (and
there is nothing WinEdt can do about this). If for some reason you
must use Adobe as your working edit-compile-preview PDF viewer you
will simply have to put with up with its limited suitability for
this purpose!

Beside the above mentioned PDF viewers WinEdt macros also work with
most "generic" previewers (including Foxit or GSView). The choice
is yours. If you need to make any changes feel free. First you'll
have to find out what your preferred viewer (if different from
above) is capable of and then you can start modifying WinEdt
macros. Keep in mind that WinEdt cannot make another application
perform any action unless that application provides a mechanism to
trigger that action from outside...
Loading...