How to Hide controls during printing or proview

I am new in VSTO 2005 and I would to know How to hide the controls in the page of word project during the preview or during the printing of the page.



Answer this question

How to Hide controls during printing or proview

  • Drance

    When you add a control to a Word document, it is added "in line with text" by default. This means that control is positioned directly in the text of the document. You can change the format of the control. For example, you can set the control so that it floats above the text, or appears behind the text. To do this, right-click the control and select Format Control.  In the Format Object dialog box, click the Layout tab. Then change the wrapping style to anything other than "In line with text".

    Kathleen McGrath
    http://blogs.msdn.com/vsto2/

  • Chaepp

    Dear Geoff,
    can you please explain to me what you mean for Inline controls


  • crispi

    Hi,

    It depends whether you are working with controls that are in-line.  Inline controls cannot be hidden.  However if you are using floating controls, you can simply go to Tools, Options and uncheck "Drawing Objects" in the "Include with document" section of the Print tab.

    Sincerely,

    Geoff Darst
    Microsoft VSTO Tools

  • How to Hide controls during printing or proview