PowerTools SPREAD for ASP.NET 8.0J
ShowPDFButton プロパティ

PDF印刷ボタンを表示するかどうかを取得または設定します。
構文
'Declaration
 
Public Property ShowPDFButton As Boolean
public bool ShowPDFButton {get; set;}
次のサンプルコードは、ShowPDFButtonプロパティを設定します。
protected void Page_Load(object sender, EventArgs e)
{
    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
参照

CommandBarInfo クラス
CommandBarInfo メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.