andrewjb
asked on
Acrobat launch problem
I've a .pdf file I want to launch from within Delphi, so I use ShellExecute in one of it's forms.
Acrobat starts, and the pdf appears.
Usually.
Acrobat 4 seems fine, but v5 causes problems in XP + SP1. Sometimes it works, often it works every-other-time. Acrobat.exe might start, but the splash screen goes and the process just seems to sit there doing nothing in the background.
Different PCs with Acrobat 5 on do different things. The same executable (Delphi test app) can do different things on different machines.
Anyone else come across this?
Acrobat starts, and the pdf appears.
Usually.
Acrobat 4 seems fine, but v5 causes problems in XP + SP1. Sometimes it works, often it works every-other-time. Acrobat.exe might start, but the splash screen goes and the process just seems to sit there doing nothing in the background.
Different PCs with Acrobat 5 on do different things. The same executable (Delphi test app) can do different things on different machines.
Anyone else come across this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what I say that also the metod to call a pdf document to show or print has canged from version 4 to version 5 of adobe acrobat (you can check in the registry menu hook that acrobat make in version 4 and 5, they make different calls). So the best way to do it is to let the iexplorer do the job for you... and to have it on your form.
ASKER
But using ShellExecute uses the inforamtion in the registry, as though you've double-clicked on the file, effectively???
If you try the two ways (launch and embed)you will see the difference in time and easyness.
ASKER
Well, noone really answered this. In the end I generated a mini html page which references the Acrobat document, and launch that i.e. using a browser.
Still don't know why it doesn't work...
Still don't know why it doesn't work...
you dont read or you cant...
ASKER
No reason to be rude. You didn't actually answer the question as to why the standard method of launching the pdf doesn't work. That's what I asked. You suggested an alternative, but I didn't want to launch the page embedded within the application. The final solution I used was similar, but launched the pdf externally. So, if you're so wonderful, could you actually explain what was failing in the first place, please.
andrewjb:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
ASKER