This example demonstrates how to use the PrintingSystem.SetCommandVisibility method to change the visibility of the toolbar buttons and menu items shown in the Print Preview of a document in a Windows Forms application.
The code here hides the Watermark toolbar button and the corresponding menu item, makes the DocumentMap toolbar button and menu item visible, and also makes the ExportToCsv and ExportToTxt commands visible in both the window's menu, and in the toolbar. Note that a list of all the commands is represented by the PrintingSystemCommand enumeration.
See also: E2304.