Message 1 of 6
Proplem with shell command

Not applicable
06-15-2006
01:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am using AutoCAD 2007 for customization through VBA.I am using a shell command for opening a pdf document,the code written for Commandbutton click event is like this
Shell "AC:\Program files\Adobe\Acrobat 6.0\Reader\AcroRd.exe c:\myfile.pdf"
This code was working fine for many days but suddenly i am getting an error message 'Invalid procedure call or Argument'
Can any one tell be what would be the problem or any other method to open pdf document through AutoCAD VBA.
Thanks.
I am using AutoCAD 2007 for customization through VBA.I am using a shell command for opening a pdf document,the code written for Commandbutton click event is like this
Shell "AC:\Program files\Adobe\Acrobat 6.0\Reader\AcroRd.exe c:\myfile.pdf"
This code was working fine for many days but suddenly i am getting an error message 'Invalid procedure call or Argument'
Can any one tell be what would be the problem or any other method to open pdf document through AutoCAD VBA.
Thanks.