Spread for ASP.NET 11 Product Documentation
Header Property (PrintEventArgs)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintEventArgs Class : Header Property
Gets whether to print the sheet header.
Syntax
'Declaration
 
Public ReadOnly Property Header As Boolean
'Usage
 
Dim instance As PrintEventArgs
Dim value As Boolean
 
value = instance.Header
public bool Header {get;}

Property Value

true for header; false for footer
Example
This example prints a header and a footer.
private void FpSpread1_PrintSheet(object sender, FarPoint.Web.Spread.PrintEventArgs e)
        { 
            if (e.Header == true)
            {
                e.Content = "Header";
            }
            if (e.Header == false)
            {
                e.Content = "Footer";
            }
        }
Private Sub FpSpread1_PrintSheet(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.PrintEventArgs) Handles FpSpread1.PrintSheet
        If e.Header = True Then
            e.Content = "Header"
        End If 
        If e.Header = False Then
            e.Content = "Footer"
        End If
    End Sub
See Also

Reference

PrintEventArgs Class
PrintEventArgs Members