public void SetTestData(SheetView sheet)
{
sheet.RowCount = 10;
string tab = "\t", ent="\r\n";
string data = "2015/12/1" + tab + "ZZZ" + tab + "1000" + ent
+ "2016/3/31" + tab + "YYY" + tab + "2000" + ent
+ "2016/3/31" + tab + "XXX" + tab + "3000" + ent;
sheet.SetClip(0, 0, 3, 3, data);
DateTimeCellType dateCell = new DateTimeCellType() { FormatString = "yyyy-M-d" };
sheet.Columns[0].CellType = dateCell;
}
Public Sub SetTestData(sheet As SheetView)
sheet.RowCount = 10
Dim tab As String = vbTab, ent As String = vbNewLine
Dim data As String = "2015/12/1" + tab + "ZZZ" + tab + "1000" + ent _
+ "2016/3/31" + tab + "YYY" + tab + "2000" + ent _
+ "2016/3/31" + tab + "XXX" + tab + "3000" + ent
sheet.SetClip(0, 0, 3, 3, data)
Dim dateCell As New DateTimeCellType() With {.FormatString = "yyyy-M-d"}
sheet.Columns(0).CellType = dateCell
End Sub