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.
Professional Software Development Tools
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.
Can you post the code you are currently using?
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
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.
Code: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
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Demo project with two solutions.
Stefan_M
Speedy Tigger was faster![]()
"With a rubber duck, one's never alone."
Douglas Adams, The Hitchhiker's Guide to the Galaxy
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.