Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / SavePdfToResponse Method / SavePdfToResponse(String,PdfSecurity) Method
Path and file name
The password to encrypt pdf file
Example


In This Topic
    SavePdfToResponse(String,PdfSecurity) Method
    In This Topic
    Saves the contents of the Spread component to a Response object in PDF file format.
    Syntax
    'Declaration
     
    
    Public Overloads Function SavePdfToResponse( _
       ByVal fileName As String, _
       ByVal pdfSecurity As PdfSecurity _
    ) As Boolean
    'Usage
     
    
    Dim instance As FpSpread
    Dim fileName As String
    Dim pdfSecurity As PdfSecurity
    Dim value As Boolean
     
    value = instance.SavePdfToResponse(fileName, pdfSecurity)
    public bool SavePdfToResponse( 
       string fileName,
       PdfSecurity pdfSecurity
    )

    Parameters

    fileName
    Path and file name
    pdfSecurity
    The password to encrypt pdf file
    Example
    This example uses the SavePdfToResponse method.
    See Also