ExcelWriteExcel(IFileData, String, ListListExcelCell, Boolean, String) Method

Writes cell data into a new xlsx File

Definition

Namespace: PCBI.Automation.IO
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static bool WriteExcel(
	IFileData xlsxFile,
	string SheetName,
	List<List<ExcelCell>> data,
	bool addSheetToExistingFile,
	out string error
)

Parameters

xlsxFile  IFileData
File to create/overwrite
SheetName  String
Name of the sheet
data  ListListExcelCell
List of lists of cells to write
addSheetToExistingFile  Boolean
if true, the sheet will be added to the existing file (Name must not exist already)
error  String
Returns the error information if funtion fails

Return Value

Boolean
True if successful

See Also