Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening a pdf file from a paradox button

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

Trying to open a pdf file from a paradox 8 button.

Does acrobat 4 or 5 support DDE? or am I going in the wrong direction?

thanks
 
Nigel1234,

Try something along these lines:

Code:
execute( "start c:\\mypath\\myfile.pdf" )

Hope this helps...

-- Lance
 
Thanks

but all i get is an error message

"error occured while trying to execute the specified program"

do you have any further idears?

 
Try this:

execute("C:\\Program Files\\Adobe\\Acrobat 4.0\\Reader\\AcroRd32.exe", "c:\\mypath\\myfile.pdf" )

first part executes the programe, and another one loads the file specified.

This should work
 
Thanks but further error messages

when i run

execute("C:\\Program Files\\Adobe\\Acrobat 5.0\\Acrobat\\Acrobat","C:\\AcroJS.pdf")

I get the message

invalid charitor "C":\AcroJS.pdf

if i just execute the application this will run

any further ideas?
 
Try putting it all in one statement.

execute("C:\\Program Files\\Adobe\\Acrobat 5.0\\Acrobat\\Acrobat.exe C:\\AcroJS.pdf")

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
Nigel1234,

Also, don't forget that you need to use two backslashes when referring to directory separators, e.g.

"c:\\program files\\adbode\\Acrobat 5.0\\"

ObjectPAL uses backslashe to indicate control characters, e.g. "\n" means "newline", "\t" means tab, and so on.

Thus, to pass a "real" backslash, you need to use two of them.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top