Spread ASP.NET 6.0 Product Documentation
Header Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintEventArgs Class : Header Property


Glossary Item Box

Gets whether to print the sheet header.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Header As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PrintEventArgs
Dim value As Boolean
 
value = instance.Header
C# 
public bool Header {get;}

Property Value

true for header; false for footer

Example

This example prints a header and a footer.
C#Copy Code
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";
			}
		}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.