Re: JFW 5.0 read all command reads only one line

  • From: Anna K Byrne <annakb@xxxxxxxxxxxxx>
  • To: jfw@xxxxxxxxxxxxx
  • Date: Tue, 20 Jan 2004 18:16:26 -0600

This is from the JFWlite list:

If you have been following this thread, you know that by now we have figured
out how to get new documents to always open in normal view, but we hadn't
figured out a way to get existing documents to always open in normal view.
Well I thought there must be a way, so I did some searching on Google.
You could probably do it with some sort of jaws script also, but here is how
to do it native to word.
I found the answer at:
http://www.theofficeexperts.com/VBASamples/Word02.htm
I tested this with Word XP, but I believe it should work for all versions of
Word.
This is probably for the more experienced word user and
I would make a backup of my normal.dot template first.
Please read the above article first and then here is my "jaws friendly"
version based on the above how to article.

First you must navigate to and open the normal.dot template file.
Then press alt f11 to be placed in the visual basic editor.
Press control R to be sure you are in the project explorer.
Arrow down in the treeview to where it says ThisDocument and hit enter.
This should place you in the code window.
Copy and paste the following lines (do not include the copy from here and
stop copying, smile).
Copy from below here:

Private Sub Document_New()
   SetView wdNormalView
End Sub

Private Sub Document_Open()
   SetView wdNormalView
End Sub

Private Sub SetView(ByVal iView As Integer)
   With ActiveDocument.ActiveWindow
     If .View.SplitSpecial = wdPaneNone Then
         .ActivePane.View.Type = iView
     Else
         .View.Type = iView
     End If
   End With
End Sub

Stop Copying.
Paste that and press alt f4.
This should close the visual basic editor and place you back in the
normal.dot.
Press alt f4 to leave word and close the normal.dot.
You will be asked if you want to save the changes to the normal.dot
template.
Enter on yes.
So far on every thing I have tested this change with, they have all opened
in normal view regardless of the view in which they were created or saved.
Debbie



--
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.

Other related posts: