Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Hiw to open PDF file Adobe reader using PowerBuilder Windows application ?

$
0
0

Declare a (global or local) external function:

 

FUNCTION long ShellExecute( ulong hWnd, string Operation, string lpFile, string  lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteW"

To open a file with the default application, use:

 

string ls_filename, ls_null
SetNull(ls_null)
ls_filename = "C:\Full\Path\To\File.pdf"
ShellExecute( 0 , "open", ls_filename, ls_Null, ls_Null, 1)

 

more about ShellExecute can be found here:

ShellExecute function (Windows)

 

hth

 

Arnd


Viewing all articles
Browse latest Browse all 2756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>