Occurs before printing spread to PDF.
Syntax
Event Data
The event handler receives an argument of type PrintPDFEventArgs containing data related to this event. The following PrintPDFEventArgs properties provide information specific to this event.
Property | Description |
---|
PdfFileName | Gets or sets the PDF file name. |
SheetIndex | Gets the index of the sheet to print. |
Example
This example uses the PrintPDF event.
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 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