Spread for ASP.NET 11 Product Documentation
SavePdf(String,PdfSecurity) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > SavePdf Method : SavePdf(String,PdfSecurity) Method
Path and file name of the PDF file
The password to encrypt pdf file
Handles the export (or printing) of all the sheets to PDF as a file.
Syntax
'Declaration
 
Public Overloads Sub SavePdf( _
   ByVal fileName As String, _
   ByVal pdfSecurity As PdfSecurity _
) 
'Usage
 
Dim instance As FpSpread
Dim fileName As String
Dim pdfSecurity As PdfSecurity
 
instance.SavePdf(fileName, pdfSecurity)
public void SavePdf( 
   string fileName,
   PdfSecurity pdfSecurity
)

Parameters

fileName
Path and file name of the PDF file
pdfSecurity
The password to encrypt pdf file
Example
This example saves to a PDF file.
FpSpread1.SavePdf("c:\\PDFfile.pdf", new FarPoint.PDF.Source.Encryption.PdfSecurity("testing", "testing1", FarPoint.PDF.Source.Encryption.PdfPermissions.AllowPrint));
FpSpread1.SavePdf("c:\PDFfile.pdf", New FarPoint.PDF.Source.Encryption.PdfSecurity("testing", "testing1", FarPoint.PDF.Source.Encryption.PdfPermissions.AllowPrint))
See Also

Reference

FpSpread Class
FpSpread Members
Overload List