no response when activate embedded object (excel) in a word file

D

Darrell Wang

I use vb.net to develop automation application, open a word application to
load a word template, template has a excel chart embedded object. Some code
as below:

............

'Open word application and load template
wordApp = New Word.Application()
wordDoc = wordApp.Documents.Add(templateFilePath)

.............

'Get embedded excel chart
Dim oleFormat As Word.OLEFormat =
wordDoc.Bookmarks("GraphAverage").Range.ShapeRange.GroupItems.Item(1).OLEFormat

Dim verb As Object = Word.WdOLEVerb.wdOLEVerbHide
oleFormat.DoVerb(verb) 'or oleFormat.Activate()

.............


use domain account logon system, all permission of automation are configed,
If set dcomconfig->Microsoft Word Document->Identity->this user to current
domain account, everything is OK. For some reason, create a local user with
local administrator permission to run automaion (domain account also has
local administrator permission). If set the user to this local user, when run
to oleFormat.DoVerb(verb) 'or oleFormat.Activate(), application will lose
response, word and excel process are started. whatever application is asp.net
or windows application the result is same. Who can help me? Thanks!
 

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