View Full Version : browse pdf and open it
Gerbrand
03-31-2005, 01:19 PM
Hi,
Hope anyone can help me with the following. I would like to browse a folder, select a pdf and open it with acrobat.
Should be simple but can not make it work.
Thanks for any help.
TJ_Tigger
03-31-2005, 01:23 PM
Can you post the code you are currently using?
TJ_Tigger
03-31-2005, 01:29 PM
One thing that always threw me was that the Dialog.FileBrowse action returns a table and not a string. So when you are opening your file make sure you reference the index for the file selected.
tbFiles = Dialog.FileBrowse(true, "Select PDF", Shell.GetFolder(SHF_MYDOCUMENTS), "Adobe PDF(*.pdf)|*.pdf| All Files(*.*)|*.*|", "", "", false, true);
if tbFiles then
File.Open(tbFiles[1], "", SW_SHOWNORMAL);
end
Stefan_M
03-31-2005, 01:50 PM
Demo project with two solutions.
Stefan_M
Speedy Tigger was faster :D
longedge
03-31-2005, 03:23 PM
One of the items on my list of things to do is to try and get to the bottom of why Acrobat Reader 7 is causing us problems with apparently broken associations. I can't for the life of me understand why Adobe imposed restrictions on including the reader on distributions.
It used to be 100% reliable when you could run the executable from your own CD - now it's a real pain. I've started to avoid pdf's where I can.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.