Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / PrintEventArgs Class / Content Property
Example


In This Topic
    Content Property
    In This Topic
    Gets or sets the HTML content for the header or the footer of the sheet. For the header, the default is the sheet name. For the footer, the default is an empty string.
    Syntax
    'Declaration
     
    Public Property Content As String
    'Usage
     
    Dim instance As PrintEventArgs
    Dim value As String
     
    instance.Content = value
     
    value = instance.Content
    public string Content {get; set;}

    Property Value

    String containing the content of the header or 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