|
|
|
|
|
|
|
Re: Word Document open from oracle form 10 g [message #629841 is a reply to message #629716] |
Tue, 16 December 2014 08:02 ![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) |
irfankundi786@yahoo.com
Messages: 269 Registered: February 2009 Location: pakistan
|
Senior Member |
|
|
Craig please send the example as you mentioned...............
1. can we open the existing file in using ole2 and also on client both becuse ole2 always open a new document...
2. if yes then where the file should be place on client or on server?
3. how to add additional pages in existing document?
|
|
|
|
Re: Word Document open from oracle form 10 g [message #629914 is a reply to message #629842] |
Wed, 17 December 2014 07:33 ![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) |
irfankundi786@yahoo.com
Messages: 269 Registered: February 2009 Location: pakistan
|
Senior Member |
|
|
sir,
my application server is on linux. i do the following step to run the form for word document but it do nothing i think hang or something....
1. open the form builder and attache webutil.pll
2. copy the block of webutil
3. copy the canvas for the webutil block these are copy from anthor form
4. put a button and past the code like
declare
arg_list client_ole2.list_type;
document client_ole2.obj_type;
documents client_ole2.obj_type;
application client_ole2.obj_type;
BEGIN
clear_record;
clear_message;
-- application := client_OLE2.CREATE_OBJ('WORD.APPLICATION');
arg_list := client_ole2.create_arglist;
documents := client_ole2.invoke_obj (application, 'documents');
client_ole2.add_arg (arg_list, 'C:\maha.DOC');
document := client_ole2.invoke_obj (documents, 'Open', arg_list);
client_ole2.destroy_arglist (arg_list);
client_ole2.RELEASE_OBJ (documents);
exception
when others then
message(SQLERRM);
message(SQLERRM);
end;
5. compile the form on linux.
6. run the form on client which is win 7
but the form do nothing
please mention which step is missued i think specially in webutil because the in form builder when other ole is used which not for webutil method the file opend and works but in webutil is not why???
|
|
|
|
Re: Word Document open from oracle form 10 g [message #629922 is a reply to message #629919] |
Wed, 17 December 2014 08:52 ![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) |
irfankundi786@yahoo.com
Messages: 269 Registered: February 2009 Location: pakistan
|
Senior Member |
|
|
hi Craig.
it is confirmed that Webutil is configured because some other form is working for the image upload and download.
my server is on linux and client is on win 7.
when form is open all the steps i mention is correct?
when i compile form on linux ...webutill.pll is attached again.
where i am doing miss steps?
|
|
|
|
|
Re: Word Document open from oracle form 10 g [message #629992 is a reply to message #629990] |
Thu, 18 December 2014 08:39 ![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) |
irfankundi786@yahoo.com
Messages: 269 Registered: February 2009 Location: pakistan
|
Senior Member |
|
|
i have opened the file from client_host method now the file is opened .can i direct data write from block to word or i follow all steps as
declare
arg_list client_ole2.list_type;
document client_ole2.obj_type;
documents client_ole2.obj_type;
application client_ole2.obj_type;
BEGIN
clear_record;
clear_message;
-- application := client_OLE2.CREATE_OBJ('WORD.APPLICATION');
arg_list := client_ole2.create_arglist;
documents := client_ole2.invoke_obj (application, 'documents');
client_ole2.add_arg (arg_list, 'C:\maha.DOC');
document := client_ole2.invoke_obj (documents, 'Open', arg_list);
client_ole2.destroy_arglist (arg_list);
client_ole2.RELEASE_OBJ (documents);
exception
when others then
message(SQLERRM);
message(SQLERRM);
pleas mentioned......
|
|
|
Re: Word Document open from oracle form 10 g [message #630016 is a reply to message #629992] |
Thu, 18 December 2014 10:57 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](//www.gravatar.com/avatar/6f539f43889b4b3e3fcb6c591073de8f?s=64&d=mm&r=g) |
CraigB
Messages: 386 Registered: August 2014 Location: Utah, USA
|
Senior Member |
|
|
irfankundi786@yahoo.com wrote on Thu, 18 December 2014 07:39i have opened the file from client_host method now the file is opened .can i direct data write from block to word or i follow all steps as
...
Yes, you can send output to Word from your form. I gave you the method that lets you write to word through the CLIENT_OLE2 package. I'm not going to write the code for you. You need to look at your code and decide where is the best place to add the call to the CLIENT_OLE2.SET_PROPERTY() method. (Hint: right after you destroy your argument list...)
As I have mentioned, there are plenty of examples of how to do this already published on the Internet. Take some initiative and search the Internet and read these articles.
You're on your own (YOYO) from here.
Craig...
|
|
|