[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Shows a preview of the NamedRange control as it would look when printed.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
For information on optional parameters, see Optional Parameters in Office Solutions.
The following code example sets the values of the cells in a NamedRange control to random numbers, and then uses the method to generate a print preview of the contents of the named range.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.