Gets or Sets the PDF File Name.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Property PdfFileName As String  | 
 
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As PrintPDFEventArgs
Dim value As String
 
instance.PdfFileName = value
 
value = instance.PdfFileName  | 
 
| C# |   | 
|---|
public string PdfFileName {get; set;} | 
 
            
            
             
            
			
			
            
            
            
Example
This example sets the PdfFileName property.
             
| C# |  Copy Code | 
|---|
fpSpread1.Commandbar.ShowPDFButton = true;
protected void FpSpread1_PrintPDF(object sender, FarPoint.Web.Spread.PrintPDFEventArgs e)
{
e.PdfFileName = "NewPdfFileName.pdf";
}
 | 
 
| Visual Basic |  Copy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 
            
            
See Also