Class SpreadsheetSplitter
Info
Membagi file spreadsheet menjadi beberapa bagian.
public class SpreadsheetSplitter
Pewarisan
Anggota yang diwarisi
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
Contoh
1private class MySplitterSaveOptions : SplitterSaveOptions
2{
3 private const string ResultBase = "result/splitter/";
4 public override Stream GetStream(int sn)
5 {
6 return File.Create(ResultBase + "part_" + sn + ".xlsx");
7 }
8}
9SpreadsheetSplitter splitter = new SpreadsheetSplitter();
10LoadOptions loadOptions = new LoadOptions();
11loadOptions.InputFile = "Template.xlsx";
12MySplitterSaveOptions saveOptions = new MySplitterSaveOptions();
13splitter.Process(loadOptions, saveOptions);
Konstruktor
SpreadsheetSplitter()
public SpreadsheetSplitter()
Metode
Process(LoadOptions, SplitterSaveOptions)
public void Process(LoadOptions loadOptions, SplitterSaveOptions saveOptions)
Parameter
loadOptions
LoadOptions: Opsi untuk input dan pemuatan:saveOptions
SplitterSaveOptions: Opsi untuk output dan penyimpanan
Namespace: Sheetize Assembly: Sheetize.dll