on 04-24-2016 3:34 PM
I saved the datwindow in pdf format using saveas() method and I want to open it in Adobe reader once it is saved successfully..in web application i used download() method to open it in PDF reader but I don't know how to do in Windows applications... I'm using powerbuilder 12.5..
hi Arunkumar V im trying to open a pdf saveas() from powerbuilder web but i cannot do it, because SaveAs() use temp session folder into server but i need to save pdf into client pc
how can i do that or how can i use download()
thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arunkumar;
As an alternative to using the local Adobe Reader tool that you or your clients have installed ( as suggested by Arnd), you can also PB's INET object class to have PB open the PDF file via your local web browser. Have a look at the "PostURL" method.
Another way is to use OLE to embed the IE web browser right into your PB application. Then you can display the PDF via the embedded browser like it was integrated right into your PB application.
Food for thought.
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.