Re: Office 2007 & Ole Automation by Doug
Doug
Sat May 27 04:38:51 CDT 2006
I am not sure what code your are using to populate the bookmarks, but
ActiveDocument.Bookmarks("test").Range.InsertBefore "This is a test"
works in documents created from both dotx and dotm templates
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
"Kevin" <Kevin@discussions.microsoft.com> wrote in message
news:AD6DDEF6-7439-43E0-AB07-B15930658E63@microsoft.com...
> Hi Doug....thank you again. Access is not in the mix. The database is
> "Advantage Database Server".
>
> I did find a work around. If I create a file and then save it back in
> 2003
> format, and then reopen it my "bookmarks" populate as expected. We'll
> have
> to figure this compatability issue out before the final release of Office
> 2007, however I'm sure its the new file format that is not getting along
> with
> your program.
>
> I do appreciate your help.
>
> "Doug Robbins - Word MVP" wrote:
>
>> Need more information to be able to help.
>>
>> What code is being used in Access. Are you sure you have the right
>> bookmark
>> names etc, etc.
>>
>> --
>> Hope this helps.
>>
>> Please reply to the newsgroup unless you wish to avail yourself of my
>> services on a paid consulting basis.
>>
>> Doug Robbins - Word MVP
>>
>> "Kevin" <Kevin@discussions.microsoft.com> wrote in message
>> news:EEA37C94-1DBC-4C3A-8615-C18713D5823F@microsoft.com...
>> > Thank Doug,
>> >
>> > Actually what I've found is that documents created in Word 03 open,
>> > and
>> > merge data just fine in Word 07.
>> >
>> > Documents that I am attempting to create in Word 07 do not merge. OUr
>> > program runs but the "bookmarks" do not update.
>> >
>> > I think it's a compatibility issue of some sort.
>> >
>> > "Doug Robbins - Word MVP" wrote:
>> >
>> >> We would need to see the code that you are using.
>> >>
>> >> The Visual Basic Fields.Update command certainly works as in previous
>> >> versions of Word.
>> >>
>> >> I have not had any issued with running any of my applications under
>> >> Office
>> >> 2007.
>> >>
>> >> --
>> >> Hope this helps.
>> >>
>> >> Please reply to the newsgroup unless you wish to avail yourself of my
>> >> services on a paid consulting basis.
>> >>
>> >> Doug Robbins - Word MVP
>> >>
>> >> "Kevin" <Kevin@discussions.microsoft.com> wrote in message
>> >> news:E53C2F70-59D9-4BD4-BCE7-24BDED181753@microsoft.com...
>> >> > Hello,
>> >> > Just playing around with the beta release and I was wondering if
>> >> > there
>> >> > is
>> >> > a
>> >> > trick to get ole automation working in the new version?
>> >> >
>> >> > We have a database application that we've interface into Word to
>> >> > merge
>> >> > data
>> >> > from our Application into a Word document.
>> >> >
>> >> > The new 2007 Word runs perfectly under our Application, however when
>> >> > we
>> >> > try
>> >> > to merge data the "bookmarks" (fields) are not updated.
>> >> >
>> >> > Is there something new we need to be aware of?
>> >> >
>> >> > Thanks much for any help. Love the new UI, can't wait to get into
>> >> > it a
>> >> > little deeper!
>> >>
>> >>
>> >>
>>
>>
>>