Re: Filling Word with OLE2



Try SQL-Word.... much easier.

<bruin.arjan@xxxxxxxxx> wrote in message
news:1150458750.587804.71170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello, I'm Arjan from the Netherlands,

I have many Word templates.
I have to fill the bookmarks/mergefields with data from an Oracle
application (made in Forms 10g).

I think OLE2 is the solution.
I already found codes to go to a specified bookmark and fill it.
However, that's not enought for me.
The data is already known and the many Word templates are also already
existed. I want to fill all bookmarks/mergefields of a Word template
without knowing which Word template will be open and the names of the
bookmarks.

I was searching for all OLE2.invoke methods, but I can't find them by
name (to see what possibilities I can use).

In my thoughts I want to do the following:
1. Opening Word and a word template (works).
2. Find the next bookmark (couldn't find a method like GoToNextBookmark
or something? Is this possible?).
3. Grab the name of the Bookmark (didn't tried yet, because step 2
didn't work so far).
4. Fill the bookmark (on the hand of the name) with the specified data
from forms.
5. Go to the next bookmark and also fill that one... until there is no
next bookmark anymore.

Anyone who knows how I have to handle this?
Alternatives are also welcome...

I will also be happy if anyone has a nice list of all methods I can
fill in with OLE2.invoke to handle a word document.
Thank you!

Arjan



.



Relevant Pages

  • Re: OLK2K3: Form Printing Assistance (Standard Field).
    ... You want to check the value of strField1 and strField, after you set them, ... This is not the best way to insert text at zero-length bookmark: ... I have verified that the Word Template contains all the ... >>> Dim strTemplate ...
    (microsoft.public.outlook.program_forms)
  • Re: Searching word tables (column) for a specific word(s) and update bookmark
    ... I designed a word template with bookmarks and a word table with 5 ... user selects a product from the list, the Prod.No, Descr., and price ... blue, Dye dark brown, Plastics light blue, etc. ... Where is this bookmark? ...
    (microsoft.public.word.vba.userforms)
  • Re: Word template to be filled by the server in aspnet
    ... I have a word template in which I define lots of bookmark (textbox for ... Terry Burns wrote: ... I wonder how I can populate the fields of a Word template in asp.net. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Filling Word with OLE2
    ... I think OLE2 is the solution. ... I already found codes to go to a specified bookmark and fill it. ... I want to fill all bookmarks/mergefields of a Word template ... Find the next bookmark (couldn't find a method like GoToNextBookmark ...
    (comp.databases.oracle.tools)
  • Re: Building Word documents using C#
    ... Thanks - I was assuming that adding text at a bookmark ... I have designed the Word template with embedded bookmarks. ... However in the completed document the original text is always moved. ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.office.developer.automation)