Spread Windows Forms 6.0 Product Documentation
PrintSheet(SheetView) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class > PrintSheet Method : PrintSheet(SheetView) Method


sheet
Sheet to be printed

Glossary Item Box

Handles the printing of the specified sheet in a separate thread.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub PrintSheet( _
   ByVal sheet As SheetView _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim sheet As SheetView
 
instance.PrintSheet(sheet)
C# 
public void PrintSheet( 
   SheetView sheet
)

Parameters

sheet
Sheet to be printed

Example

This example prints a child sheet.
C#Copy Code
private void button1_Click(object sender, System.EventArgs e)
        {
            FarPoint.Win.Spread.SheetView ss; 
            ss = fpSpread1.Sheets[0].GetChildView(0, 0); 
            if (ss != null)
            {
                fpSpread1.PrintSheet(ss);
            }
        }
Visual BasicCopy Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        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
    End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FpSpread Class
FpSpread Members
Overload List

User-Task Documentation

Printing

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