Solved

Word Application in Oracle Forms?

Posted on 2001-07-16
4
1,621 Views
Last Modified: 2008-02-26
How to Call Word 2000 Application in Forms 6.0
Application (I know we can call through OLE)
Please provide code snippets

Thanks
By Subbu
0
Comment
Question by:vsubbu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 100 total points
ID: 6285364
Here is an example how to do even more. This is intended for filling the data into a document with bookmark.

=========================================================

Declare
  Word OLE2.Obj_Type;
  Arg  OLE2.List_Type;

Procedure Write_To_Bookmark (Bookmark_Name VarChar2, Data VarChar2) is
  Begin
    Arg:=OLE2.Create_ArgList;
    OLE2.Add_Arg (Arg, Bookmark_Name);
    OLE2.Invoke (Word,'WW7_EditGoto',Arg);
    OLE2.Destroy_ArgList (Arg);
    Arg:=OLE2.Create_ArgList;
    OLE2.Add_Arg (Arg,Data);
    OLE2.Invoke (Word,'Insert',Arg);
    OLE2.Destroy_ArgList (Arg);
  End;

Begin
  Word:=OLE2.Create_Obj ('Word.Basic');
  OLE2.Invoke (Word,'AppShow');
  Arg:=OLE2.Create_ArgList;
  OLE2.Add_Arg (Arg,'Example.dot');
  OLE2.Invoke (Word,'FileNew',Arg);
  OLE2.Destroy_ArgList (Arg);
  Write_To_Bookmark ('Bookmark1','Here I am!');
  OLE2.Invoke (Word,'StartOfDocument',Arg);
  OLE2.Release_Obj (Word);
End;

=====================================================

If you just want to open a file use this:

Declare
  Word OLE2.Obj_Type;
  Arg  OLE2.List_Type;

Begin
  Word:=OLE2.Create_Obj ('Word.Basic');
  OLE2.Invoke (Word,'AppShow');
  Arg:=OLE2.Create_ArgList;
  OLE2.Add_Arg (Arg,'Example.doc');
  OLE2.Invoke (Word,'FileOpen',Arg);
  OLE2.Destroy_ArgList (Arg);
  OLE2.Release_Obj (Word);
End;

====================================================
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7063556
Hi vsubbu@idg,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. If there is no objection or further activity, I will suggest to:

    Accept schwertner's answer.

vsubbu@idg, if you think your question was not answered at all, you can post a new comment here.  Community Support moderators will followup.

Please do not accept this comment as an answer!

EXPERTS: Your input and closing recommendations are REQUESTED.
==========
vsubbu@idg -- EE database cleanup volunteer
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7082999
Recommended disposition:

    Accept schwertner's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7091159
Thanks for your help here, Dan.
Finalized,  item closed.
Moondancer - EE Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to take different types of Oracle backups using RMAN.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question