[]
        
(Showing Draft Content)

FarPoint.Web.Spread.FpSpread.SavePdfToResponse

SavePdfToResponse Method

SavePdfToResponse()

Saves the contents of the Spread component to a Response object in PDF file format.

Declaration
public bool SavePdfToResponse()
Public Function SavePdfToResponse() As Boolean
Returns
Type Description
bool

SavePdfToResponse(PdfSecurity)

Saves the contents of the Spread component to a Response object in PDF file format.

The password to encrypt pdf file
Declaration
public bool SavePdfToResponse(PdfSecurity pdfSecurity)
Public Function SavePdfToResponse(pdfSecurity As PdfSecurity) As Boolean
Parameters
Type Name Description
PdfSecurity pdfSecurity
Returns
Type Description
bool

SavePdfToResponse(string)

Saves the contents of the Spread component to a Response object in PDF file format.

Declaration
public bool SavePdfToResponse(string fileName)
Public Function SavePdfToResponse(fileName As String) As Boolean
Parameters
Type Name Description
string fileName

Path and file name

Returns
Type Description
bool

SavePdfToResponse(string, PdfSecurity)

Saves the contents of the Spread component to a Response object in PDF file format.

Declaration
public bool SavePdfToResponse(string fileName, PdfSecurity pdfSecurity)
Public Function SavePdfToResponse(fileName As String, pdfSecurity As PdfSecurity) As Boolean
Parameters
Type Name Description
string fileName

Path and file name

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool

SavePdfToResponse(int, string, bool)

Saves the contents of the Spread component to a Response object in PDF file format.

Declaration
public bool SavePdfToResponse(int sheet, string fileName, bool showInBrowser)
Public Function SavePdfToResponse(sheet As Integer, fileName As String, showInBrowser As Boolean) As Boolean
Parameters
Type Name Description
int sheet

Index of sheet to print; -1 for all sheets

string fileName

Path and file name

bool showInBrowser

Whether to show the PDF in a browser

Returns
Type Description
bool

SavePdfToResponse(int, string, bool, PdfSecurity)

Saves the contents of the Spread component to a Response object in PDF file format.

Declaration
public bool SavePdfToResponse(int sheet, string fileName, bool showInBrowser, PdfSecurity pdfSecurity)
Public Function SavePdfToResponse(sheet As Integer, fileName As String, showInBrowser As Boolean, pdfSecurity As PdfSecurity) As Boolean
Parameters
Type Name Description
int sheet

Index of sheet to print; -1 for all sheets

string fileName

Path and file name

bool showInBrowser

Whether to show the PDF in a browser

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool