Solved

Viewing a word97 doc

Posted on 1998-09-18
2
141 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
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…
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…

734 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