Winnovative Excel to PDF Converter

ExcelToPdfConverter.ConvertExcelFileToStream Method (String, String,Int32[], Stream)

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

Namespace:  Winnovative.ExcelToPdf
Assembly:  wnvexceltopdf (in wnvexceltopdf.dll) Version: 10.0.0.0
Syntax

public void ConvertExcelFileToStream(
	string excelFilePath,
	string password,
	int[] worksheetIndexes,
	Stream outPdfStream
)

Parameters

excelFilePath
Type: System.String
The full path of the Excel file to convert to PDF
password
Type: System.String
The password to open the Excel document
worksheetIndexes
Type:System.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
Type: System.IO.Stream
The output stream where to write the generated PDF document
See Also

Reference