Home » Developer & Programmer » Forms » To open a new word document and delete that worddocument via forms (10g, xp service pack2)
To open a new word document and delete that worddocument via forms [message #580618] Tue, 26 March 2013 04:25 Go to next message
ora_bbm
Messages: 30
Registered: March 2013
Location: Chennai
Member
hi,
i have one word doc file name is sample.doc

i have 3 buttons in my canvas. 1st button is to open a word document.
codings:


declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin('D:\Program Files\Microsoft Office\Office12\winword.exe F:\DevSuiteHome_1\forms\samples.doc',DDE.APP_MODE_NORMAL);
end;

2nd button:

i want to delete the existing sample.doc file via forms

i dont know the codings. please post the sample coding


CAN ANY ONE HELP ME


THANX IN ADVANCE

[Updated on: Tue, 26 March 2013 04:31]

Report message to a moderator

Re: To open a new word document and delete that worddocument via forms [message #580621 is a reply to message #580618] Tue, 26 March 2013 05:01 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't have sample code, but you'd - I suppose - utilize HOST (or CLIENT_HOST) which would, in turn, use the operating system's DELETE command and delete the file.
Re: To open a new word document and delete that worddocument via forms [message #597785 is a reply to message #580621] Tue, 08 October 2013 08:07 Go to previous message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member

@littlefoot is right

Use

HOST ( 'del C:\A.DOC', NO_SCREEN );

for webform

webUtil: webutil_file.delete_file


Regard
Mughal

Previous Topic: frm 40735 and ora 01722
Next Topic: upload file in ebs 11i
Goto Forum:
  


Current Time: Wed Apr 24 20:43:40 CDT 2024