Webbrower control and word doc, views 
Author Message
 Webbrower control and word doc, views

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



Sun, 16 Sep 2001 03:00:00 GMT  
 Webbrower control and word doc, views
Ok, I see what happend, I had the control sized too small and couldn't see
the view buttons in the left hand bottom corner.  Is there a way to lock it
into normal and take these buttons off the control?

Thanks

Quote:
> 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



Tue, 18 Sep 2001 03:00:00 GMT  
 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



Wed, 19 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Control for Viewing Word doc on VB form

2. A control to view Words.doc's

3. a control to view Word.doc's

4. A control to view Words.doc's

5. a control to view Word.doc's

6. A control to view Words.doc's

7. a control to view Word.doc's

8. A control to view Words.doc's

9. a control to view Word.doc's

10. Viewing word doc using binarywrite

11. Viewing Word .doc in browser

12. View word doc from VB5

 

 
Powered by phpBB® Forum Software