Class SpreadsheetSplitter

Info

แบ่งไฟล์สเปรดชีตออกเป็นหลายส่วน.

public class SpreadsheetSplitter

การสืบทอด

objectSpreadsheetSplitter

สมาชิกที่สืบทอด

ตัวอย่าง

 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);

ตัวสร้าง

SpreadsheetSplitter()

public SpreadsheetSplitter()

วิธีการ

Process(LoadOptions, SplitterSaveOptions)

public void Process(LoadOptions loadOptions, SplitterSaveOptions saveOptions)

พารามิเตอร์

  • loadOptions LoadOptions: ตัวเลือกสำหรับการนำเข้าและการโหลด:
  • saveOptions SplitterSaveOptions: ตัวเลือกสำหรับการส่งออกและการบันทึก

Namespace: Sheetize Assembly: Sheetize.dll

 แบบไทย