Solved

Viewing a word97 doc

Posted on 1998-09-18
2
133 Views
Last Modified: 2010-04-30
I have an application where I need to view word a document that could be several pages long. While viewing I need to use other controls at any time. I was using an OLE container, but when I move focus from the container to another control, it will de-activate and default back to the first page of the document. The user will then have to double click to activate and find the page he was on. These word documents can have tables, pictures, etc. in them, so rich text box will not work. Is there another control that will do this job and how is it used.
0
Comment
Question by:mlentini
2 Comments
 

Accepted Solution

by:
vinoopauls earned 200 total points
ID: 1435582
Try using this piece of code:

Include the Word 8.0 lbbrary in your application from the references

Option Explicit
Dim wrd As Word.Application
Dim doc As Word.Documents
Private Sub Form_Load()
    Set wrd = New Word.Application
    Set doc = wrd.Documents
    doc.Open ("C:\windows\script.doc")
     wrd.WindowState = wdWindowStateMaximize
     wrd.Visible = True
     wrd.Activate
End Sub

Using this and other properties one can control all aspects of word


0
 

Author Comment

by:mlentini
ID: 1435583
This will work but I need to make the word menu bar and the tool bar invisible form VB. The user must not have editing contol word document.    Thanks Mike
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now