Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / SavePdf Method / SavePdf(SheetView,Stream,PdfSecurity) Method
Sheet to be printed
Stream to save the file to as a PDF stream
The password to encrypt pdf file
Example


In This Topic
    SavePdf(SheetView,Stream,PdfSecurity) Method
    In This Topic
    Handles the export (or printing) of the specified sheet to PDF as a stream.
    Syntax
    'Declaration
     
    
    Public Overloads Function SavePdf( _
       ByVal sheetView As SheetView, _
       ByVal stream As Stream, _
       ByVal pdfSecurity As PdfSecurity _
    ) As Boolean
    'Usage
     
    
    Dim instance As FpSpread
    Dim sheetView As SheetView
    Dim stream As Stream
    Dim pdfSecurity As PdfSecurity
    Dim value As Boolean
     
    value = instance.SavePdf(sheetView, stream, pdfSecurity)
    public bool SavePdf( 
       SheetView sheetView,
       Stream stream,
       PdfSecurity pdfSecurity
    )

    Parameters

    sheetView
    Sheet to be printed
    stream
    Stream to save the file to as a PDF stream
    pdfSecurity
    The password to encrypt pdf file
    Example
    This example saves to PDF.
    See Also