question

GlenCollingwood-1511 avatar image
0 Votes"
GlenCollingwood-1511 asked

Open a Word documnet with all the formatting marks visible

I am building a Word custom Ribbon as a VSTO project using VB within the Visual Studio environment.
Part of what I want to do is, from the Ribbon, open Word documents:
- with all the formatting marks visible
- the Styles pane visible .

I have done this previously with VBA as each document is opens using the following:

 'Open Word with Styles pane visible and docked to the right
     With Application
         .TaskPanes(wdTaskPaneFormatting).Visible = True
         .CommandBars("Styles").Position = msoBarRight
     End With
     ActiveWindow.DocumentMap = True
    
 'Open document with all formatting and hidden text visible
     ActiveWindow.View.ShowAll = True

I've been searching for hours and cannot find how to do this with VB.net.

Is anybody able to help please.



office-vsto-com-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers