Home » Developer & Programmer » Forms » how to open downloaded file (10g developer suite win xp)
how to open downloaded file [message #351055] Mon, 29 September 2008 02:30 Go to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Hi,

My system requires that I automatically open the resume I have downloaded to my OS. Using Webutil_file_transfer.db_to_client I am able to download the file to the sample.doc file existing in D:\ORACLE_FILES folder but I want to automatically open this file once the download is over.

I tried using Client_Get_File_name and DDE components(below) but nothing worked. I can see something blink (as if it opened and closed) but it does not work

Quote:
appl_name := 'D:\ORACLE_FILES\SAMPLE.DOC';
:global.application_id := dde.app_begin(appl_name, dde.app_mode_normal);


Any other way to accomplish this?
Re: how to open downloaded file [message #351059 is a reply to message #351055] Mon, 29 September 2008 02:39 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Try using the 'host' and 'client_host' commands.

David

PS Also 'web.show_document'.

[Updated on: Mon, 29 September 2008 02:39]

Report message to a moderator

Re: how to open downloaded file [message #351061 is a reply to message #351059] Mon, 29 September 2008 02:44 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
sorry forgot to mention...tried all those as well but did not work

CLIENT_HOST('D:\ORACLE_FILES\SAMPLE.DOC');
WEB.SHOW_DOCUMENT('D:\ORACLE_FILES\SAMPLE.doc','_blank')

I think maybe the first parameter in the SHOW_DOCUMENT could be wrong..please guide me if it is

Re: how to open downloaded file [message #351066 is a reply to message #351061] Mon, 29 September 2008 02:53 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

try this

CLIENT_HOST('cmd /c rundll32 url.dll,FileProtocolHandler D:\ORACLE_FILES\SAMPLE.DOC'



Finally you got the webutil working... Smile

[Updated on: Mon, 29 September 2008 02:55]

Report message to a moderator

Re: how to open downloaded file [message #351079 is a reply to message #351066] Mon, 29 September 2008 04:06 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Smile Thanks...as usual..file opened properly

and sorry for not completing the previous post...I went through all the steps in webutil.pdf file (as you had mentioned) and it is working fine now... Surprised

Re: how to open downloaded file [message #362515 is a reply to message #351059] Tue, 02 December 2008 09:37 Go to previous message
tobi
Messages: 4
Registered: November 2008
Junior Member
Hi every body Finally I got open Excel in Client from Developer 10g using WEBUTIL.
Its a little complicated to configure this but it works.
Thanks for your Support.
Previous Topic: balance calculation et al
Next Topic: Insert to SQL Server from Oracle Forms Fails with (ORA-00904)
Goto Forum:
  


Current Time: Sat Dec 03 09:54:43 CST 2016

Total time taken to generate the page: 0.09852 seconds