Spread for ASP.NET 9.0 Product Documentation
PdfFileName Property
Example 


Gets or sets the PDF file name.
Syntax
'Declaration
 
Public Property PdfFileName As String
'Usage
 
Dim instance As PrintPDFEventArgs
Dim value As String
 
instance.PdfFileName = value
 
value = instance.PdfFileName
public string PdfFileName {get; set;}
Example
This example sets the PdfFileName 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
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

PrintPDFEventArgs Class
PrintPDFEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.