
Word.Document document = this.Application.
#HOW DO YOU PRINT IN VISUAL STUDIO ON A MAC CODE#
To use this example, run the code from the ThisAddIn class in your project. InPrint 3 is a new and improved version of the popular Communicate: In Print 2 which was used as a desktop publishing program for creating symbol-supported resources for printing. The following code example prints the active document. PageType:, PrintToFile:false, Collate:true,Ĭall the PrintOut method of the Document object that you want to print, and specify that one copy of the current page be printed.

To use this example, run the code from the ThisAddIn class in your project.

Print a document by using a VSTO Add-in To print an entire documentĬall the PrintOut method of the Document object that you want to print. Ref oTrue, ref oFalse, ref range, ref missing, ref missing, ref missing, To use this example, run the code from the ThisDocument class. TIP If there is an accessibility option for colors or fonts that you think might be useful but isnt currently available in Visual Studio, please let us know by selecting Suggest a feature in the Visual Studio Developer Community. To print the current page of the documentĬall the PrintOut method of the ThisDocument class in your project and specify that one copy of the current page be printed. To learn more about other Visual Studio accessibility options available to you, see the Accessibility features of Visual Studio page. Ref missing, ref oFalse, ref missing, ref missing, ref missing, ref missing) Ref items, ref copies, ref pages, ref pageType, ref oFalse, ref oTrue,

Doing it this way, you'll get syntax highlighting and version control. In your browser, navigate to the file and print it. This.PrintOut(ref oTrue, ref oFalse, ref range, ref missing, ref missing, ref missing, One way to print your code is to push it to an online version control system like Github or Bitbucket. Print a document that is part of a document-level customization To print the entire documentĬall the PrintOut method of the ThisDocument class in your project to print the entire document. For more information, see Features available by Office application and project type. You can print an entire Microsoft Office Word document, or part of a document, to your default printer.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word.
