Solved

Viewing a word97 doc

Posted on 1998-09-18
2
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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