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 IamaSherpa 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 Help File

Status
Not open for further replies.

hankm3

Programmer
Jan 27, 2002
284
US
Hello,

I was wondering if anyone has a Shortcut to Open a PDF Help File in Procomm. Here is where I stand so Far.

I use the Normal Routines to Launch an Application Like Word and a Word Document. No problem there. But most since PC's can Open PDF Documents without Adobe Acrobat Installed, is it possible to Run a Routine to Open a PDF File. Just Curious.

Example: This is How I Open My Help File via PushButton in DialogBox Currently !

proc GetHelp
string Appl = "c:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe "
string HFile = "c:\Procomm\Aspect\Scripts\GetLinesHelp.pdf"
string outp ;* The outp string is a Null String
strcat outp Appl ;* Add the Application Path the to outp String
strcat outp HFile ;* Append the Help File to Application for Execution
;* outp is Set for the Application and Document to Execute
run outp ;* Run the Application with the File Name to Open
endproc

Any Ideas to Shorten This ???
 
You can just use the run command to "run" (open, really) the PDF file. It is the same result as if you ran the command line in the Start | Run field. In your example, all you would need is to run Hfile.
 
Knob

You are the Best BUD !! Tried everything But that... I think My Main Problem was that the PDF Help File was Not in the Procomm Script Path.... Lesson Learned !!

Thanks Again !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top