open text file [message #152284] |
Thu, 22 December 2005 03:39 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
foreverth
Messages: 5 Registered: November 2005
|
Junior Member |
|
|
I want to open a text file (*.doc) on Form 6i. But i don't success in writing code to do it.
Can you help me?
|
|
|
Re: open text file [message #152295 is a reply to message #152284] |
Thu, 22 December 2005 05:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
imhamedi
Messages: 5 Registered: December 2005 Location: Rabat
|
Junior Member |
|
|
procedure test_ecriture_fichier is
v_text_io text_io.file_type;
Chemin varchar2(40);
text_charg varchar2(200);
Begin
chemin := 'C:\mon_doc.doc';
v_text_io := text_io.fopen (chemin,'w');
text_charg := 'TEST';
text_io.put_line(v_text_io,text_charg);
text_io.fclose(v_text_io);
Exception when others then
Message(sqlerrm);
end;
hope that'll help you
|
|
|
|
|
Re: open text file [message #152845 is a reply to message #152731] |
Tue, 27 December 2005 04:08 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
foreverth
Messages: 5 Registered: November 2005
|
Junior Member |
|
|
David!
You don't understand my mind. "Sarch this forum for 'word' or 'MS word' somebody has given a nice solution using 'ora_ffi'" ? hihihi
Nothing. If you use I/O file, you will only input and output data of file, OK? If you use Output file, Oracle will read data and assign some variable, OK? I don't need it. I want to call a text file *.doc on MS Word by code Oracle form 6i. Oracle will Conection to MS Word and open file.
However, thank you David!
|
|
|
Re: open text file [message #152846 is a reply to message #152731] |
Tue, 27 December 2005 04:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
foreverth
Messages: 5 Registered: November 2005
|
Junior Member |
|
|
David!
You don't understand my mind. "Sarch this forum for 'word' or 'MS word' somebody has given a nice solution using 'ora_ffi'" ? hihihi
Nothing. If you use I/O file, you will only input and output data of file, OK? If you use Output file, Oracle will read data and assign some variable, OK? I don't need it. I want to call a text file *.doc on MS Word by code Oracle form 6i. Oracle will Conection to MS Word and open file.
However, thank David!
|
|
|
|
|