Word automation error (View.SplitSpecial)

M

Marco Singer

Hi all,

this code in VB.NET:

Dim app as New Word.Application
Dim doc as Word.Document

doc = app.documents.Open(filename)

doc.ActiveWindow.View.SplitSpecial = Word.WdSpecialPane.wdPaneNone
doc.ActiveWindow.View.SplitSpecial = Word.WdSpecialPane.wdPaneComments

causes an "command failed" (?) (German: "Befehl misslungen") exception.

The same code in Word VBA runs without problems.

Can anyone help?

Thanks
Marco
 

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