ExcelToPdfConverterConvertExcelFileToStream(String, Int32, Stream) Method

Converts an Excel file to PDF and writes the rendered PDF document into a stream. You can specify the list of worksheets to be exported to PDF

Definition

Namespace: Winnovative.ExcelToPdf
Assembly: WnvExcelToPdf_NetCore (in WnvExcelToPdf_NetCore.dll) Version: 12.0.0
C#
public void ConvertExcelFileToStream(
	string excelFilePath,
	int[] worksheetIndexes,
	Stream outPdfStream
)

Parameters

excelFilePath  String
The full path of the Excel file to convert to PDF
worksheetIndexes  Int32
The zero based indexes in workbook of the worksheets to export to PDF. The worksheets are exported in the order given by this list
outPdfStream  Stream
The output stream where to write the generated PDF document

See Also