if i open the word file on server using server word installed and save it on server in drive.then i need the webutil or not.
No, OLE2 will still work on the Application Server (AS) - provided your AS is Windows and you have the Office program installed.
irfankundi786@yahoo.com wrote on Mon, 15 December 2014 08:07
.
if the server is on linux then what the coding to open the word file?
or I must configure the webutil?
With a Non-Windows Application Server, you will have to use WebUtil to interact with the Client Office product.
As to the coding, there are numerous examples of how to use WebUtil on the Internet so I'll not re-list anything here.
To successfully configure WebUtil, take a look at the following Forms Help Topics:
1. Configuring WebUtil
2. Runtime Setup Checklist
I recommend you print the "Runtime Setup Checklist" and then using the Configuring WebUtil article to complete each step in the checklist.
Senior Member Senior Member Senior Member Senior Member Senior Member Senior Memberdeclare
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);
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.
Please check the Java Console to see if there are any Java Exceptions being thrown. To view the Java Console, just right-click on the Java Icon in the System Tray and select Java Console. WebUtil relies on the JACOB (Java COm Bridge) to perform he OLE actions on the client so if it is not working, most likely there is a Java Exception occurring.
I strongly recommend you read the following Forms Help Topics on WebUtil:
1. Introduction to WebUtil
2. WebUtil User's Guide
3. Using WebUtil in Your Applications
4. Functions in WebUtil