Quantcast
Viewing all articles
Browse latest Browse all 7205

How to change visibility of toolbar buttons and menu items in print preview


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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>