Spread Windows Forms 7.0 Product Documentation
Printing a Child View of a Hierarchical Display
Support Options
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Managing Printing > Specifying What to Print > Printing a Child View of a Hierarchical Display

Glossary Item Box

You can print child sheets of a hierarchy and manage how they are printed. To do this, you specify the specific child view and then use the PrintSheet method as described in Printing an Entire Sheet.

For more information about a hierarchical display, refer to Working with Hierarchical Data Display.

Using Code

  1. Use the PrintSheet method to print child sheets.

Example

This example prints a child sheet.

C# Copy Code
// Add print code to a command button in a hierarchy example.
FarPoint.Win.Spread.SheetView ss;
ss = fpSpread1.Sheets[0].GetChildView(0, 0);
if (ss != null)
{
    fpSpread1.PrintSheet(ss);
};
VB Copy Code
' Add print code to a command button in a hierarchy example.
Dim ss As FarPoint.Win.Spread.SheetView
ss = FpSpread1.Sheets(0).GetChildView(0, 0)
If Not ss Is Nothing Then
    FpSpread1.PrintSheet(ss)
End If

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.