
Webbrower control and word doc, views
You may need to check for multiple Panes, but you could try
' Requires Project/References to
' "Microsoft Word 8.0 Object Library" (MSWord8.olb)
Private mDoc As Word.Document ' Form-level variable
'
Set mDoc = wbr.Document ' in wbr_DocumentComplete?
'
With mDoc.ActiveWindow
.View.Type = wdNormalView
.DisplayRulers = False
.DisplayHorizontalScrollBar = False
End With
'
It would probably be good practice to save these settings and restore their
original values when the WebBrowser Control is destroyed.
Barry Evans
Canberra, Australia
----------------------------
I have a word doc in the web browser control which works great but the
problem is it uses whatever view you have set up in word like page layout, I
tried setting word to normal view but that doesn't do anything for the
control and I can only hide the ruler if I hide it in word. I looked
through the Exec WB commands but didn't see anything about the view.
Any ideas are appreciated
Thanks