For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > July 2004 > How to open "any" .pdf?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to open "any" .pdf?
jonejr

2004-07-16, 3:59 pm

ShellExecuteA
Here's the code for those in the same skill set as myself...

Declare a Global External Function
FUNCTION long ShellExecuteA( ulong hWnd, string Operation, string lpFile, &
string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll"

Script
ls_null

ShellExecuteA( 0, "open", "path\to\any.pdf", ls_null, ls_null, 1 )' or
ShellExecuteA( 0, "open", "path\to\any.xls", ls_null, ls_null, 1 )' or
ShellExecuteA( 0, "open", "path\to\any.doc", ls_null, ls_null, 1 )' etc...!!!1

Enjoy.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com