Openning a . pdf document

Openning a . pdf document

Anonymous
Not applicable
381 Views
5 Replies
Message 1 of 6

Openning a . pdf document

Anonymous
Not applicable
Hi,
Can any one explain me hoe to open a pdf document by just click of a commnd button.

Igot a pdf document name "C:w.pdf" i want to open by the click a commnd button, i have Adobe Reader 6 installed in system.
Plese help.
0 Likes
382 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Hi Benny!

Use the SHELL command of autocad (defined in acad.pgp)
Test it in commandline first:


sh c:\myFolder\myDocument.pdf


That's all - You can use SENDCOMMAND for the line above

Greetings from Bernie from austria

wrote in message news:5076425@discussion.autodesk.com...
Hi,
Can any one explain me hoe to open a pdf document by just click of a commnd
button.

Igot a pdf document name "C:w.pdf" i want to open by the click a commnd
button, i have Adobe Reader 6 installed in system.
Plese help.
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hi Bernie,
Thnks for the reply the shell commnad you sent is not working moreover i need code for command button click event,plese help.
Thanks in advance.
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi Benny!

You can also use the SHELL Command of VB

private sub commandbutton .......
shell "C:\programs\adobe\........\acrord32.exe c:\myFile.pdf" '
..... use the folders where you have Acrobat Reader installed
end sub

I have tested this on my system - it is rumming!

Greetings from bernie from austria

wrote in message news:5076475@discussion.autodesk.com...
Hi Bernie,
Thnks for the reply the shell commnad you sent is not working moreover i
need code for command button click event,plese help.
Thanks in advance.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Hi Bernie, I am verry happy to recieve your reply,your code is working, i am very thankfull to you.
Bye
0 Likes
Message 6 of 6

Anonymous
Not applicable
benny said the following on 2/3/2006 1:11 AM:
> Hi,
> Can any one explain me hoe to open a pdf document by just click of a commnd button.
>
> Igot a pdf document name "C:w.pdf" i want to open by the click a commnd button, i have Adobe Reader 6 installed in system.
> Plese help.

See:
http://rkmcswain.blogspot.com/2005/11/launch-pdf-from-autocad.html



--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes