Spread for ASP.NET 7.0 Product Documentation
ShowPDFButton Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CommandBarInfo Class : ShowPDFButton Property


Glossary Item Box

Gets or sets whether to display the print PDF button.

Syntax

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

Example

This example sets the ShowPDFButton property.
C#Copy Code
fpSpread1.Commandbar.ShowPDFButton = true;

protected void FpSpread1_PrintPDF(object sender, FarPoint.Web.Spread.PrintPDFEventArgs e)
{
e.PdfFileName = "NewPdfFileName.pdf";
}
Visual BasicCopy Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        FpSpread1.CommandBar.ShowPDFButton = True
    End Sub

    Protected Sub FpSpread1_PrintPDF(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.PrintPDFEventArgs) Handles FpSpread1.PrintPDF
        e.PdfFileName = "NewPdfFileName.pdf"
    End Sub

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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