
Scrolling embedded Word document in VB5 OLE control
Thanks Don and Barry
I think this must be the way to go.
I take it you have Word running as well and do all the document manipulation
by OLE automation, saving each change and refreshing the Browser at the same
time? Can you programmatically scroll the browser view of the document?
Thanks very much for the offers of help - after the frustration and
depression I got myself into yesterday trying to follow the MS KB advice on
scrolling Word docs in OLE controls this has made me feel my fresh and
optimistic self again.
Cheers guys
Chris
I second Barry's comments... I've been there to!!!
However, I've been there using VB5.
VB5 SP3, IE4.01 SP1, Word97 (with the SR2 patches) and Win 95 or 98.
There are many little issues though!
I've also got it to run with IE 3 but there are different versions of the
web control which you have to use.
Yell out if this is the way you want to go and need help
Cheers
DiG
Quote:
>Have you considered using a WebBrowser Control as the container for your
>Word Document?
>If you are unfamiliar with this control (which is actually the core of
>Internet Explorer 4), please e-mail me direct and I would be happy to send
>you a small example (Vb6 Pro SP1, IE 4.01 SP1, Word97 {8.0], Win95) which
>manipulates a Word document in a WebBrowser Control. Even without Vb6,
>perhaps you could get something out of it with a little of ye olde cut 'n'
>paste. No Strings attached.
>Barry Evans
>Canberra, Australia
>----------------------------
>I'm building up a Word document from a form which shows the document
>embedded in an OLE control on the same form.
>This all works fine except that I can't see more than the first page in the
>OLE control. I've tried calling the PageScroll method like this
>gfrmmain.OLE1.object.application.activedocument.activewindow.activepane.pag
e
>scroll down:=1
>but I get an error which implies that the activepane is already scrolled to
>the last page (if I call pagescroll up:=1 there is no error).
>Any ideas from you experts/MVPs?
>Hopefully,
>Chris Jones