MS Word and Automation - application.visible

B

Bernhard Haslinger

Hello Group,
I have a problem using ms word2000 from visual basic .net.
When I generate my document (the document includes a different number
of tables) and the application is visible everything works fine. But
when I run the application in visible = false mode an error occurs -
the application says that the requested table is not available.

I dont know why this can happen - has somebody an idea?

greetz
bernhard
 
C

Cindy M -WordMVP-

Hi Bernhard,

Really hard to guess without seeing the code involved.

Generally, there are problems automating some aspects of Word if things
aren't visible. Word relies a lot on being able to physically lay out
the text on "pages". That shouldn't prevent it from finding tables, I
wouldn't think, but it might depend on HOW you're trying to do it.
I have a problem using ms word2000 from visual basic .net.
When I generate my document (the document includes a different number
of tables) and the application is visible everything works fine. But
when I run the application in visible = false mode an error occurs -
the application says that the requested table is not available.

I dont know why this can happen - has somebody an idea?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
P

Peter Lingo

Hi,
I remember that in the past I had in a special case this problem which was
caused by the Select - method. Do you have code like this?

Peter
 

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