Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / CommandBarInfo Class / ShowPDFButton Property

In This Topic
    ShowPDFButton Property
    In This Topic
    Gets or sets whether to display the print PDF button.
    Public Property ShowPDFButton As Boolean
    Dim instance As CommandBarInfo
    Dim value As Boolean
    instance.ShowPDFButton = value
    value = instance.ShowPDFButton
    public bool ShowPDFButton {get; set;}
    This example sets the ShowPDFButton property.
    fpSpread1.Commandbar.ShowPDFButton = true;
    protected void FpSpread1_PrintPDF(object sender, FarPoint.Web.Spread.PrintPDFEventArgs e)
    e.PdfFileName = "NewPdfFileName.pdf";
    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
    See Also