C# Class SympleLib.OpenXml.XLSWorker

Afficher le fichier Open project: sympletech/SympleLib Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

AddNewRow() public méthode

public AddNewRow ( ) : XLSRow
Résultat XLSRow

AddNewSheet() public méthode

public AddNewSheet ( string sheetName ) : void
sheetName string
Résultat void

AddNewSheet() public méthode

public AddNewSheet ( string sheetName, int position ) : void
sheetName string
position int
Résultat void

ApplyFilter() public méthode

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

Create() public static méthode

Creates a new Excel Workbook
public static Create ( string path ) : XLSWorker
path string
Résultat XLSWorker

Create() public static méthode

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

CreateOrOpen() public static méthode

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

InsertNewRow() public méthode

public InsertNewRow ( int rowNumber ) : XLSRow
rowNumber int
Résultat XLSRow

Open() public static méthode

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

Save() public méthode

public Save ( ) : void
Résultat void

SaveAs() public méthode

public SaveAs ( string path ) : void
path string
Résultat void

SaveToMemoryStream() public méthode

public SaveToMemoryStream ( ) : Stream
Résultat Stream

SetActiveSheet() public méthode

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

SetActiveSheet() public méthode

public SetActiveSheet ( int sheetNum, int headerRowNum = 1, bool noHeaderRow = false ) : void
sheetNum int
headerRowNum int
noHeaderRow bool
Résultat void

SetActiveSheet() public méthode

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

WriteToCell() public méthode

public WriteToCell ( string CellID, object Value ) : void
CellID string
Value object
Résultat void

WriteToHttpResponse() public méthode

public WriteToHttpResponse ( string fileName ) : void
fileName string
Résultat void

XLSWorker() public méthode

public XLSWorker ( ) : System
Résultat System