Winnovative Logo

ExcelToPdfConverterConvertExcelFile Method (String, Int32)

Winnovative Client for .NET Core
Converts an Excel file to PDF and returns the rendered PDF document into a memory buffer. You can specify the list of worksheets to be exported to PDF

Namespace:  WinnovativeClient
Assembly:  WinnovativeClient_NetCore (in WinnovativeClient_NetCore.dll) Version: 17.0.0
Syntax

public byte[] ConvertExcelFile(
	string excelFilePath,
	int[] worksheetIndexes
)

Parameters

excelFilePath
Type: SystemString
The full path of the Excel file to convert to PDF
worksheetIndexes
Type: SystemInt32
The zero based indexes in workbook of the worksheets to export to PDF. The worksheets are exported in the order given by this list

Return Value

Type: Byte
A memory buffer containing the the generated PDF document
See Also

Reference