PrintedUpgradeIcons RemoveIcons = new PrintedUpgradeIcons(); //Initialize PrintedUpgradeIcons RemoveIcons.Remove(document); //Remove upgrade icons from the printed document
using System.Printing; PrintQueue queue = new PrintQueue(new PrintServer(), "Printer1"); // Initialize PrintQueue PrintedUpgradeIcons RemoveIcons = new PrintedUpgradeIcons(queue); //Initialize PrintedUpgradeIcons RemoveIcons.Remove(document); //Remove upgrade icons from the printed documentIn this example, a PrintQueue object is created to specify the printer to use. The PrintedUpgradeIcons object is then initialized with this PrintQueue object. The Remove method is called on this object to remove any upgrade icons from the document before it is printed. The PrintedUpgradeIcons Remove method is part of the System.Printing.PrintingServices package library.