ComponentOne VSFlexGrid 8.0
Printing Grids

You may print grids using the PrintGrid method. PrintGrid allows you to specify paper orientation, margins, and a footer, or show a printer setup dialog box and allow the user to select the printer, paper orientation, etc. While the document is printing, the PrintGrid method fires several events that allow you to cancel the printing and annotate each page as it is created (StartPage), control page breaks (BeforePageBreak), or select specific rows and use them as page headers (GetHeaderRow).

If you need more sophisticated printing capabilities, such as print previewing or the ability to render several grids and other text and graphical elements on a single document, you should use the VSPrinter control (available separately from ComponentOne). The VSPrinter control has a RenderControl property that allows you to render grids on documents along with other data. VSPrinter documents can be previewed, printed, or saved to files.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback