none
How to programmatically hide bookmarks, xml nodes and editable regions?

    Question

  • How do I programmatically hide bookmark carets, XML nodes and the caret and background colour for editable regions in a protected document?

     

    Monday, August 01, 2005 10:30 AM

Answers

  • Hi

    I presume you are referring to the highlighting options within word when having an XML schema attached.

    ' Shows the XMLMarkup in a document and other view properties

    ActiveWindow.View.ShowXMLMarkup = wdToggle ActiveWindow.View.ShowPicturePlaceHolders = False
    ActiveWindow.View.ShowFieldCodes = False
    ActiveWindow.ShowBookmarks = False
    ActiveWindow.FieldShading = wdFieldShadingWhenSelected
    ActiveWindow.ShowHighlight = False

    Hope this helps

    Monday, August 01, 2005 11:15 AM
    Moderator

All replies

  • Hi

    I presume you are referring to the highlighting options within word when having an XML schema attached.

    ' Shows the XMLMarkup in a document and other view properties

    ActiveWindow.View.ShowXMLMarkup = wdToggle ActiveWindow.View.ShowPicturePlaceHolders = False
    ActiveWindow.View.ShowFieldCodes = False
    ActiveWindow.ShowBookmarks = False
    ActiveWindow.FieldShading = wdFieldShadingWhenSelected
    ActiveWindow.ShowHighlight = False

    Hope this helps

    Monday, August 01, 2005 11:15 AM
    Moderator
  • Thank you!

    I found this as well, this.ActiveWindow.View.ShadeEditableRanges = 0; and now I've solved all my problems. You got me on the right track!
    Monday, August 01, 2005 11:34 AM