[]
        
(Showing Draft Content)

FarPoint.Web.Spread.FpSpread.SavePdf

SavePdf Method

SavePdf(string)

Handles the export (or printing) of all the sheets to PDF as a file.

Declaration
public void SavePdf(string fileName)
Public Sub SavePdf(fileName As String)
Parameters
Type Name Description
string fileName

Path and file name of the PDF file

SavePdf(string, PdfSecurity)

Handles the export (or printing) of all the sheets to PDF as a file.

Declaration
public void SavePdf(string fileName, PdfSecurity pdfSecurity)
Public Sub SavePdf(fileName As String, pdfSecurity As PdfSecurity)
Parameters
Type Name Description
string fileName

Path and file name of the PDF file

PdfSecurity pdfSecurity

The password to encrypt pdf file

SavePdf(Stream)

Handles the export (or printing) of all the sheets to PDF as a stream.

Declaration
public void SavePdf(Stream stream)
Public Sub SavePdf(stream As Stream)
Parameters
Type Name Description
Stream stream

Stream to save the file to as a PDF stream

SavePdf(Stream, PdfSecurity)

Handles the export (or printing) of all the sheets to PDF as a stream.

Declaration
public void SavePdf(Stream stream, PdfSecurity pdfSecurity)
Public Sub SavePdf(stream As Stream, pdfSecurity As PdfSecurity)
Parameters
Type Name Description
Stream stream

Stream to save the file to as a PDF stream

PdfSecurity pdfSecurity

The password to encrypt pdf file

SavePdf(int, Stream)

Handles the export (or printing) of the specified sheet to PDF as a stream.

Declaration
public bool SavePdf(int sheet, Stream stream)
Public Function SavePdf(sheet As Integer, stream As Stream) As Boolean
Parameters
Type Name Description
int sheet

Index of sheet to print to PDF; -1 for all sheets

Stream stream

Stream to save the file to as a PDF stream

Returns
Type Description
bool

SavePdf(int, Stream, PdfSecurity)

Handles the export (or printing) of the specified sheet to PDF as a stream.

Declaration
public bool SavePdf(int sheet, Stream stream, PdfSecurity pdfSecurity)
Public Function SavePdf(sheet As Integer, stream As Stream, pdfSecurity As PdfSecurity) As Boolean
Parameters
Type Name Description
int sheet

Index of sheet to print to PDF; -1 for all sheets

Stream stream

Stream to save the file to as a PDF stream

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool

SavePdf(SheetView, Stream)

Handles the export (or printing) of the specified sheet to PDF as a stream.

Declaration
public bool SavePdf(SheetView sheetView, Stream stream)
Public Function SavePdf(sheetView As SheetView, stream As Stream) As Boolean
Parameters
Type Name Description
SheetView sheetView

Sheet to be printed

Stream stream

Stream to save the file to as a PDF stream

Returns
Type Description
bool

SavePdf(SheetView, Stream, PdfSecurity)

Handles the export (or printing) of the specified sheet to PDF as a stream.

Declaration
public bool SavePdf(SheetView sheetView, Stream stream, PdfSecurity pdfSecurity)
Public Function SavePdf(sheetView As SheetView, stream As Stream, pdfSecurity As PdfSecurity) As Boolean
Parameters
Type Name Description
SheetView sheetView

Sheet to be printed

Stream stream

Stream to save the file to as a PDF stream

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool

SavePdf(int, string)

Handles the export (or printing) of the specified sheet to PDF as a file.

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

Index of sheet to print; -1 for all sheets

string fileName

Path and file name of PDF file

Returns
Type Description
bool

SavePdf(int, string, PdfSecurity)

Handles the export (or printing) of the specified sheet to PDF as a file.

Declaration
public bool SavePdf(int sheet, string fileName, PdfSecurity pdfSecurity)
Public Function SavePdf(sheet As Integer, fileName As String, 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 of PDF file

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool

SavePdf(SheetView, string)

Handles the export (or printing) of the specified sheet to PDF as a file.

Declaration
public bool SavePdf(SheetView sheetView, string fileName)
Public Function SavePdf(sheetView As SheetView, fileName As String) As Boolean
Parameters
Type Name Description
SheetView sheetView

Sheet to be printed

string fileName

Path and file name of PDF file

Returns
Type Description
bool

SavePdf(SheetView, string, PdfSecurity)

Handles the export (or printing) of the specified sheet to PDF as a file.

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

Sheet to be printed

string fileName

Path and file name of PDF file

PdfSecurity pdfSecurity

The password to encrypt pdf file

Returns
Type Description
bool