Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Opening a pdf regardles of the Adobe version

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
191 Views, 4 Replies

Opening a pdf regardles of the Adobe version

Hi,

I do this to open a PDF document.

(dos_execute (strcat "\"C:\\Program Files\\Adobe\\Reader
9.0\\Reader\\AcroRd32.exe\" \"" fnm "\"") 0)

But not everyone has the same version of Acrobat installed.

Does anyone know to make this work regardless of wich version of AutoDesk is
installed?

Kind regards,

M
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

i guess it could be done
you have to read out the open command of registry (regedit) and open
acrobat reader with it

M. Janmaat wrote:
> Hi,
>
> I do this to open a PDF document.
>
> (dos_execute (strcat "\"C:\\Program Files\\Adobe\\Reader
> 9.0\\Reader\\AcroRd32.exe\" \"" fnm "\"") 0)
>
> But not everyone has the same version of Acrobat installed.
>
> Does anyone know to make this work regardless of wich version of AutoDesk is
> installed?
>
> Kind regards,
>
> M
Message 3 of 5
Anonymous
in reply to: Anonymous

That was my guess too. : )

But how?


"Gert" schreef in bericht
news:6180627@discussion.autodesk.com...
i guess it could be done
you have to read out the open command of registry (regedit) and open
acrobat reader with it

M. Janmaat wrote:
> Hi,
>
> I do this to open a PDF document.
>
> (dos_execute (strcat "\"C:\\Program Files\\Adobe\\Reader
> 9.0\\Reader\\AcroRd32.exe\" \"" fnm "\"") 0)
>
> But not everyone has the same version of Acrobat installed.
>
> Does anyone know to make this work regardless of wich version of AutoDesk
> is
> installed?
>
> Kind regards,
>
> M
Message 4 of 5
H.vanZeeland
in reply to: Anonymous

Hi,




(vl-registry-read "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Acrobat.exe" "")

(vl-registry-read "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\AcroRd32.exe" "")



Cheers

Harrie

Message 5 of 5
Anonymous
in reply to: Anonymous


Hi Harrie,

 

I was just looking at the doslib
commands...

 

Thanks!

 

M


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi,





(vl-registry-read
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App
Paths\\Acrobat.exe" "")

(vl-registry-read
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App
Paths\\AcroRd32.exe"
"")



Cheers

Harrie

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost