Home » Developer & Programmer » Forms » ORA-106556 (Word Viewer cannot open the document ...)
ORA-106556 (Word Viewer cannot open the document ...) [message #210237] Wed, 20 December 2006 00:07 Go to next message
underpressure_23
Messages: 5
Registered: December 2006
Location: thailand
Junior Member
This is my code:

IF :misc.destination = 'SCREEN' THEN
v_temp_directory := WIN_API_ENVIRONMENT.GET_TEMP_DIRECTORY(TRUE);
v_temp_dest := v_temp_directory ||'\FLA-'||:c028.line_cd||'-'||ltrim(to_char(:c028.la_yy,'09'))||'-'||ltrim(to_char(:c028.fla_seq_no,'0000009'));



args := OLE2.CREATE_ARGLIST;
ole2.add_arg(args, v_temp_dest);
ole2.invoke(application, 'FileSaveAs', args);
OLE2.DESTROY_ARGLIST(args);

args := ole2.create_arglist;
ole2.add_arg(args, 2);
ole2.invoke(application, 'FileClose', args);
ole2.destroy_arglist(args);

ole2.invoke(application, 'FileExit', args);


AppId := DDE.App_Begin('C:\Program Files\WordView\wordview.exe '||v_temp_dest, DDE.App_Mode_Maximized);
ConId := DDE.Initiate('WINWORD', v_temp_dest);
END IF;

the path of the wordviewer is correct yet i still encounter error s and cannot open the word document.

can anyone please helpme . thanks =)
Re: ORA-106556 (Word Viewer cannot open the document ...) [message #210452 is a reply to message #210237] Wed, 20 December 2006 20:20 Go to previous messageGo to next message
underpressure_23
Messages: 5
Registered: December 2006
Location: thailand
Junior Member
i already solved th problem.. basically there many possible causes of those errors.. in my case the programmer just forgot to add the code OLE2.INVOKE(application, 'FileOpen', args); that opens the word file and another is to check if you have wordviewr installed at your computer.

=)

Re: ORA-106556 (Word Viewer cannot open the document ...) [message #210453 is a reply to message #210237] Wed, 20 December 2006 20:21 Go to previous messageGo to next message
underpressure_23
Messages: 5
Registered: December 2006
Location: thailand
Junior Member
i already solved th problem.. basically there many possible causes of those errors.. in my case the programmer just forgot to add the code OLE2.INVOKE(application, 'FileOpen', args); that opens the word file and another is to check if you have wordviewr installed at your computer.

=)

Re: ORA-106556 (Word Viewer cannot open the document ...) [message #210454 is a reply to message #210237] Wed, 20 December 2006 20:26 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

ow, indi nga tol?
<<ouch, i'm on a wrong thread>>

[Updated on: Wed, 20 December 2006 20:32]

Report message to a moderator

Re: ORA-106556 (Word Viewer cannot open the document ...) [message #210456 is a reply to message #210237] Wed, 20 December 2006 20:55 Go to previous message
underpressure_23
Messages: 5
Registered: December 2006
Location: thailand
Junior Member
yes i've already solved it sir wency! so whats seems to be the problem? =)
Previous Topic: Urgent: problem in if-else statment.
Next Topic: How to display records into a non table base block.....
Goto Forum:
  


Current Time: Sat Feb 08 18:52:56 CST 2025