Office 2007 & Ole Automation

K

Kevin

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!
 
D

Doug Robbins - Word MVP

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
 
K

Kevin

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.
 
D

Doug Robbins - Word MVP

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
 
K

Kevin

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.
 
D

Doug Robbins - Word MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top