C# Class SympleLib.OpenXml.XLSWorker

Datei anzeigen Open project: sympletech/SympleLib Class Usage Examples

Public Methods

Method Description
AddHeaderRow ( List colNames, int rowNum ) : void

Write a New Header Row - Sets the Header Row of the current sheet to the row specified

AddNewRow ( ) : XLSRow
AddNewSheet ( string sheetName ) : void
AddNewSheet ( string sheetName, int position ) : void
ApplyFilter ( string columnName, string filterString ) : void

Filter Row Collection on a specific Column

Create ( string path ) : XLSWorker

Creates a new Excel Workbook

Create ( string path, bool overwrite ) : XLSWorker

Creates a new Excel Workbook - Overwrites Existing File

CreateOrOpen ( string path ) : XLSWorker

Checks to see if document exists - creates if not - opens if it does exist

InsertNewRow ( int rowNumber ) : XLSRow
Open ( string path ) : XLSWorker

Open an Existing xls file for Reading and Modfification

Save ( ) : void
SaveAs ( string path ) : void
SaveToMemoryStream ( ) : Stream
SetActiveSheet ( IXLWorksheet sheet, int headerRowNum = 1, bool noHeaderRow = false ) : void
SetActiveSheet ( int sheetNum, int headerRowNum = 1, bool noHeaderRow = false ) : void
SetActiveSheet ( string sheetName, int headerRowNum = 1, bool noHeaderRow = false ) : void
WriteToCell ( string CellID, object Value ) : void
WriteToHttpResponse ( string fileName ) : void
XLSWorker ( ) : System

Method Details

AddHeaderRow() public method

Write a New Header Row - Sets the Header Row of the current sheet to the row specified
public AddHeaderRow ( List colNames, int rowNum ) : void
colNames List
rowNum int
return void

AddNewRow() public method

public AddNewRow ( ) : XLSRow
return XLSRow

AddNewSheet() public method

public AddNewSheet ( string sheetName ) : void
sheetName string
return void

AddNewSheet() public method

public AddNewSheet ( string sheetName, int position ) : void
sheetName string
position int
return void

ApplyFilter() public method

Filter Row Collection on a specific Column
public ApplyFilter ( string columnName, string filterString ) : void
columnName string
filterString string
return void

Create() public static method

Creates a new Excel Workbook
public static Create ( string path ) : XLSWorker
path string
return XLSWorker

Create() public static method

Creates a new Excel Workbook - Overwrites Existing File
public static Create ( string path, bool overwrite ) : XLSWorker
path string
overwrite bool
return XLSWorker

CreateOrOpen() public static method

Checks to see if document exists - creates if not - opens if it does exist
public static CreateOrOpen ( string path ) : XLSWorker
path string
return XLSWorker

InsertNewRow() public method

public InsertNewRow ( int rowNumber ) : XLSRow
rowNumber int
return XLSRow

Open() public static method

Open an Existing xls file for Reading and Modfification
public static Open ( string path ) : XLSWorker
path string
return XLSWorker

Save() public method

public Save ( ) : void
return void

SaveAs() public method

public SaveAs ( string path ) : void
path string
return void

SaveToMemoryStream() public method

public SaveToMemoryStream ( ) : Stream
return Stream

SetActiveSheet() public method

public SetActiveSheet ( IXLWorksheet sheet, int headerRowNum = 1, bool noHeaderRow = false ) : void
sheet IXLWorksheet
headerRowNum int
noHeaderRow bool
return void

SetActiveSheet() public method

public SetActiveSheet ( int sheetNum, int headerRowNum = 1, bool noHeaderRow = false ) : void
sheetNum int
headerRowNum int
noHeaderRow bool
return void

SetActiveSheet() public method

public SetActiveSheet ( string sheetName, int headerRowNum = 1, bool noHeaderRow = false ) : void
sheetName string
headerRowNum int
noHeaderRow bool
return void

WriteToCell() public method

public WriteToCell ( string CellID, object Value ) : void
CellID string
Value object
return void

WriteToHttpResponse() public method

public WriteToHttpResponse ( string fileName ) : void
fileName string
return void

XLSWorker() public method

public XLSWorker ( ) : System
return System