Sheetize Namespace

คลาส

ชื่อคลาสรายละเอียด
EbookConverterตัวแปลงสำหรับการแปลงระหว่างไฟล์ ebook และรูปแบบไฟล์สเปรดชีตอื่นๆ
EbookSaveOptionsตัวเลือกสำหรับการบันทึก .EPUB, .AZW3
HtmlConverterตัวแปลงสำหรับการแปลงระหว่างไฟล์ html (html, mht, …) และรูปแบบไฟล์สเปรดชีตอื่นๆ
HtmlSaveOptionsตัวเลือกสำหรับการบันทึก html
ImageConverterตัวแปลงสำหรับการแปลงไฟล์เทมเพลตเป็น pdf
ImageSaveOptionsตัวเลือกสำหรับการบันทึกภาพ
JsonConverterตัวแปลงสำหรับการแปลงระหว่างข้อมูล json และรูปแบบไฟล์สเปรดชีตอื่นๆ
JsonSaveOptionsตัวเลือกสำหรับการบันทึก json
Licenseใบอนุญาตสำหรับผลิตภัณฑ์
LoadOptionsตัวเลือกสำหรับการโหลดไฟล์เทมเพลต
MergerLoadOptionsตัวเลือกสำหรับการรวมไฟล์หลายๆ ไฟล์
PdfConverterตัวแปลงสำหรับการแปลงไฟล์เทมเพลตเป็น pdf
PdfSaveOptionsตัวเลือกสำหรับการบันทึก pdf
SaveOptionsตัวเลือกสำหรับการบันทึกไฟล์
SheetizeExceptionข้อยกเว้นที่ถูกโยนเมื่อเกิดข้อผิดพลาดที่ระบุโดย Aspose.Cells
SplitterSaveOptionsตัวเลือกสำหรับการแบ่งไฟล์เทมเพลต
SpreadsheetConverterตัวแปลงสำหรับการแปลงระหว่างรูปแบบไฟล์สเปรดชีตที่แตกต่างกัน เช่น xls, xlsx, xlsb, ods, spreadsheet ml…
SpreadsheetMergerรวมไฟล์เทมเพลตหลายไฟล์เป็นไฟล์เดียว
SpreadsheetSaveOptionsตัวเลือกสำหรับการบันทึกสเปรดชีต
SpreadsheetSplitterแบ่งไฟล์สเปรดชีตออกเป็นหลายส่วน
SpreadsheetUnlockerปลดล็อกไฟล์สเปรดชีต
TextConverterตัวแปลงสำหรับการแปลงระหว่างรูปแบบที่อิงจากข้อความ (csv, markdown, dif…) และรูปแบบไฟล์สเปรดชีตอื่นๆ
TextSaveOptionsตัวเลือกสำหรับการบันทึก .SQL, .MD, .CSV, .TSV, .TXT, .XML, .DIF
UnlockerLoadOptionsตัวเลือกเพื่อปลดล็อกไฟล์ excel

อีนัมส์

ชื่ออีнัมรายละเอียด
ExceptionTypeแทนรหัสประเภทข้อยกเว้นที่กำหนดเอง
FileFormatTypeแทนรูปแบบไฟล์ที่รองรับสำหรับการแปลง
ImageTypeระบุประเภท (รูปแบบ) ของภาพ

Subsections of Sheetize Namespace

Class EbookConverter

Info

ตัวแปลงสำหรับการแปลงระหว่าง ebook และรูปแบบไฟล์สเปรดชีตอื่นๆ.

public class EbookConverter

การสืบทอด

objectEbookConverter

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

ตัวอย่าง

1EbookConverter converter = new EbookConverter();
2LoadOptions loadOptions = new LoadOptions();
3loadOptions.InputFile = "MyStory.xlsx";
4EbookSaveOptions saveOptions = new EbookSaveOptions();
5saveOptions.OutputFile = "res.epub";
6converter.Process(loadOptions, saveOptions);

คอนสตรัคเตอร์

EbookConverter()

public EbookConverter()

เมธอด

Process(LoadOptions, EbookSaveOptions)

แปลงระหว่าง ebook และรูปแบบไฟล์สเปรดชีตอื่นๆ.

public void Process(LoadOptions loadOptions, EbookSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class EbookSaveOptions

Info

ตัวเลือกสำหรับการบันทึก .EPUB, .AZW3.

public class EbookSaveOptions : SaveOptions

การสืบทอด

objectSaveOptionsEbookSaveOptions

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

คอนสตรัคเตอร์

EbookSaveOptions()

public EbookSaveOptions()

คุณสมบัติ

SaveFormat

ดึงและตั้งค่าฟอร์แมตของสเปรดชีต

public FileFormatType SaveFormat { get; set; }

ค่าของคุณสมบัติ

FileFormatType

Namespace: Sheetize Assembly: Sheetize.dll

Class HtmlConverter

Info

เครื่องมือแปลงสำหรับการแปลงระหว่างไฟล์ html (html, mht, …) และรูปแบบไฟล์สเปรดชีตอื่น ๆ.

public class HtmlConverter

การสืบทอด

objectHtmlConverter

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

ตัวอย่าง

1HtmlConverter converter = new HtmlConverter();
2LoadOptions loadOptions = new LoadOptions();
3loadOptions.InputFile = "Template.xlsx";
4HtmlSaveOptions saveOptions = new HtmlSaveOptions();
5saveOptions.OutputFile = "res.html";
6converter.Process(loadOptions, saveOptions);

ตัวสร้าง

HtmlConverter()

public HtmlConverter()

วิธีการ

Process(LoadOptions, HtmlSaveOptions)

แปลงไฟล์ระหว่าง html และรูปแบบไฟล์สเปรดชีตอื่น ๆ.

public void Process(LoadOptions loadOptions, HtmlSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class HtmlSaveOptions

Info

ตัวเลือกในการบันทึก html.

public class HtmlSaveOptions : SaveOptions

การสืบทอด

objectSaveOptionsHtmlSaveOptions

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

ตัวสร้าง

HtmlSaveOptions()

public HtmlSaveOptions()

คุณสมบัติ

SaveFormat

รับและตั้งค่าฟอร์แมตของสเปรดชีต.

public FileFormatType SaveFormat { get; set; }

ค่าโปรperty

FileFormatType

Namespace: Sheetize Assembly: Sheetize.dll

Class ImageConverter

Info

เครื่องมือแปลงสำหรับการแปลงไฟล์แม่แบบเป็น pdf.

public class ImageConverter

การสืบทอด

objectImageConverter

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

ตัวอย่าง

 1private class MyImageSaveOptions : ImageSaveOptions
 2{
 3    private const string ResultBase = "result/images/";
 4    public override Stream GetStream(int pageIndex)
 5    {
 6        return File.Create(ResultBase + "res_" + pageIndex + ".png");
 7    }
 8}
 9ImageConverter converter = new ImageConverter();
10LoadOptions loadOptions = new LoadOptions();
11loadOptions.InputFile = "Template.xlsx";
12ImageSaveOptions saveOptions = new MyImageSaveOptions();
13converter.Process(loadOptions, saveOptions);

ตัวสร้าง

ImageConverter()

public ImageConverter()

วิธีการ

Process(LoadOptions, ImageSaveOptions)

แปลงไฟล์แม่แบบเป็นภาพ

public void Process(LoadOptions loadOptions, ImageSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class ImageSaveOptions

Info

ตัวเลือกสำหรับการบันทึกรูปภาพ.

public class ImageSaveOptions : SaveOptions

Inheritance

objectSaveOptionsImageSaveOptions

Inherited Members

Constructors

ImageSaveOptions()

public ImageSaveOptions()

Properties

HorizontalResolution

Gets or sets the horizontal resolution for generated images, in dots per inch.

public int HorizontalResolution { get; set; }

Property Value

int

Remarks

ค่าเริ่มต้นคือ 96.

การตั้งค่า Sheetize.ImageSaveOptions.HorizontalResolution และ Sheetize.ImageSaveOptions.VerticalResolution จะมีผลต่อความกว้างและความสูงของภาพเอาท์พุตในพิกเซล.

ImageType

Gets or sets the format of the generated images. ค่าเริ่มต้นคือ Sheetize.ImageType.Png.

public ImageType ImageType { get; set; }

Property Value

ImageType

OnePagePerSheet

ถ้า OnePagePerSheet เป็น true จะมีการส่งออกเนื้อหาทั้งหมดของแผ่นหนึ่งไปที่หนึ่งหน้าในผลลัพธ์. ขนาดกระดาษที่กำหนดโดย PageSetup จะถูกละเลย แต่การตั้งค่าอื่น ๆ ของ PageSetup จะยังคงมีผล.

public bool OnePagePerSheet { get; set; }

Property Value

bool

VerticalResolution

Gets or sets the vertical resolution for generated images, in dots per inch.

public int VerticalResolution { get; set; }

Property Value

int

Remarks

ค่าเริ่มต้นคือ 96.

การตั้งค่า Sheetize.ImageSaveOptions.HorizontalResolution และ Sheetize.ImageSaveOptions.VerticalResolution จะมีผลต่อความกว้างและความสูงของภาพเอาท์พุตในพิกเซล.

Methods

Finish(Stream)

Finish writing data to the stream.
โดยค่าเริ่มต้น เมธอดนี้จะปิดสตรีมโดยตรง (รวมถึงกรณีที่ สตรีมคือสิ่งที่ระบุโดย Sheetize.SaveOptions.OutputStream).
ผู้ใช้สามารถเขียนทับเมธอดนี้เพื่อควบคุมวิธีการปล่อยทรัพยากร ตามความต้องการของตนและการดำเนินการของ Sheetize.ImageSaveOptions.GetStream(System.Int32).

public virtual void Finish(Stream stream)

Parameters

  • stream Stream: สตรีมที่ได้เสร็จสิ้นงาน (บันทึกข้อมูลไปที่)

GetStream(int)

Gets stream to save the image.

public virtual Stream GetStream(int pageIndex)

Parameters

  • pageIndex int: หน้าที่จะเรนเดอร์เป็นภาพ

Returns

Stream : สตรีมสำหรับเขียนภาพที่สร้างขึ้น.

Remarks

โดยค่าเริ่มต้น หาก Sheetize.SaveOptions.OutputStream ได้ถูกระบุและมีผล, เมธอดนี้จะส่งคืนสตรีมที่ระบุเสมอ ผู้ใช้ควรเขียนทับเมธอดนี้ในการดำเนินการของเขาเอง ของคลาสนี้เพื่อนำเสนอวัตถุสตรีมที่แตกต่างและเหมาะสมสำหรับผลลัพธ์หลายหน้า.
หาก Sheetize.SaveOptions.OutputFile ได้ถูกระบุและมีผล, หากมีภาพอยู่เพียงหน้าเดียว จะใช้เส้นทางที่ระบุ (ไฟล์) โดยตรงเป็นผลลัพธ์; ไม่เช่นนั้นจะมีการต่อท้ายดัชนีหน้ากับชื่อไฟล์และส่งคืน FileStream ที่สร้างจากไฟล์. ตัวอย่างเช่น หากเส้นทางเอาต์พุตถูกกำหนดเป็น res.png จะมีการสร้างภาพเป็น res0.png, res1.png, …

Namespace: Sheetize Assembly: Sheetize.dll

Class JsonConverter

Info

ตัวแปลงสำหรับการแปลงข้อมูล JSON และรูปแบบไฟล์สเปรดชีตอื่น ๆ.

public class JsonConverter  

Inheritance

object
JsonConverter

Inherited Members

Examples

1  
2
3JsonConverter converter = new JsonConverter();  
4LoadOptions loadOptions = new LoadOptions();  
5loadOptions.InputFile = "data.json";  
6JsonSaveOptions saveOptions = new JsonSaveOptions();  
7saveOptions.OutputFile = "res.xlsx";  
8converter.Process(loadOptions, saveOptions);  

Constructors

JsonConverter()

public JsonConverter()  

Methods

Process(LoadOptions, JsonSaveOptions)

แปลงระหว่างข้อมูล JSON และรูปแบบไฟล์สเปรดชีตอื่น ๆ.

public void Process(LoadOptions loadOptions, JsonSaveOptions saveOptions)  

Parameters

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

Namespace: Sheetize
Assembly: Sheetize.dll

Class JsonSaveOptions

Info

ตัวเลือกสำหรับการบันทึก json.

public class JsonSaveOptions : SaveOptions  

การสืบทอด

object
SaveOptions
JsonSaveOptions

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

ตัวสร้าง

JsonSaveOptions()

public JsonSaveOptions()  

คุณสมบัติ

SaveFormat

Gets and sets the format of spreadsheet.

public FileFormatType SaveFormat { get; set; }  

ค่า Property

FileFormatType

Namespace: Sheetize
Assembly: Sheetize.dll

Class License

Info

ทำให้ผลิตภัณฑ์มีใบอนุญาต.

public class License

Inheritance

objectLicense

Inherited Members

Examples

1Sheetize.License license = new Sheetize.License();
2license.SetLicense("mylic.lic");

Constructors

License()

public License()

Methods

SetLicense(Stream)

ทำให้ผลิตภัณฑ์มีใบอนุญาตโดยใช้ Stream ที่ให้ข้อมูลใบอนุญาต

public void SetLicense(Stream stream)

Parameters

SetLicense(string)

ทำให้ผลิตภัณฑ์มีใบอนุญาตโดยใช้ไฟล์ใบอนุญาต

public void SetLicense(string licenseName)

Parameters

Namespace: Sheetize Assembly: Sheetize.dll

Class LoadOptions

Info

ตัวเลือกสำหรับการโหลดไฟล์แม่แบบ.

public class LoadOptions

Inheritance

objectLoadOptions

Derived

Inherited Members

Constructors

LoadOptions()

public LoadOptions()

Properties

InputFile

Gets and sets the file(with path if needed) of the template.

public string InputFile { get; set; }

Property Value

string

Remarks

เมื่อกำหนดเส้นทางที่ไม่เป็น null และไม่ว่างให้กับคุณสมบัตินี้, ค่าที่ตั้งไว้ก่อนหน้าสำหรับ Sheetize.LoadOptions.InputStream จะถูกละเลย

InputStream

Gets and sets the Stream of the template.

public Stream InputStream { get; set; }

Property Value

Stream

Remarks

เมื่อกำหนด Stream ที่ไม่เป็น null ให้กับคุณสมบัตินี้, ค่าที่ตั้งไว้ก่อนหน้าสำหรับ Sheetize.LoadOptions.InputFile จะถูกละเลย

Namespace: Sheetize Assembly: Sheetize.dll

Class MergerLoadOptions

Info

ตัวเลือกสำหรับการรวมหลายไฟล์.

public class MergerLoadOptions : LoadOptions

การสืบทอด

objectLoadOptionsMergerLoadOptions

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

ตัวสร้าง

MergerLoadOptions()

public MergerLoadOptions()

คุณสมบัติ

InputStreamEnumerator

ดึง/ตั้งค่าสตรีมอินพุตที่ใช้ในการโหลดข้อมูลและรวมไฟล์

public IEnumerator InputStreamEnumerator { get; set; }

ค่าของคุณสมบัติ

IEnumerator

วิธีการ

Finish(Stream)

ทำการโหลดข้อมูลจากสตรีม (ได้มาจาก Sheetize.MergerLoadOptions.InputStreamEnumerator).
ตามค่าเริ่มต้นวิธีนี้จะปิดสตรีมโดยตรง
ผู้ใช้สามารถเขียนทับวิธีนี้เพื่อควบคุมวิธีการปล่อยทรัพยากรตามความต้องการของตนและการใช้งานของ Sheetize.MergerLoadOptions.InputStreamEnumerator.

public virtual void Finish(Stream stream)

พารามิเตอร์

  • stream Stream: สตรีมที่เสร็จสิ้นการทำงาน (การบันทึกข้อมูลไปยัง)

Namespace: Sheetize Assembly: Sheetize.dll

Class PdfConverter

Info

ตัวแปลงสำหรับการแปลงไฟล์เทมเพลตเป็น pdf.

public class PdfConverter  

การสืบทอด

object
PdfConverter

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

ตัวอย่าง

1  
2
3PdfConverter converter = new PdfConverter();  
4LoadOptions loadOptions = new LoadOptions();  
5loadOptions.InputFile = "Template.xlsx";  
6PdfSaveOptions saveOptions = new PdfSaveOptions();  
7saveOptions.OutputFile = "res.pdf";  
8converter.Process(loadOptions, saveOptions);  

ตัวสร้าง

PdfConverter()

public PdfConverter()  

วิธีการ

Process(LoadOptions, PdfSaveOptions)

แปลงไฟล์เทมเพลตเป็น pdf

public void Process(LoadOptions loadOptions, PdfSaveOptions saveOptions)  

พารามิเตอร์

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

Namespace: Sheetize
Assembly: Sheetize.dll

Class PdfSaveOptions

Info

ตัวเลือกสำหรับการบันทึก pdf.

public class PdfSaveOptions : SaveOptions  

Inheritance

object
SaveOptions
PdfSaveOptions

Inherited Members

Constructors

PdfSaveOptions()

public PdfSaveOptions()  

Namespace: Sheetize
Assembly: Sheetize.dll

Class SaveOptions

Info

ตัวเลือกสำหรับการบันทึกไฟล์.

public class SaveOptions

การสืบทอด

objectSaveOptions

สืบทอด

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

ตัวสร้าง

SaveOptions()

public SaveOptions()

คุณสมบัติ

OutputFile

คืนค่าและตั้งค่าชื่อไฟล์ (พร้อมทางถ้าจำเป็น) สำหรับการบันทึกข้อมูลที่สร้างขึ้น เมื่อคุณตั้งค่าคุณสมัตินี้ด้วยค่าที่ไม่ใช่ null หรือสตริงว่าง, Sheetize.SaveOptions.OutputStream จะถูกละเว้น

public string OutputFile { get; set; }

ค่า Property

string

OutputStream

คืนค่าและตั้งค่า Stream สำหรับการเขียนข้อมูลที่สร้างขึ้น เมื่อคุณตั้งค่าคุณสมัตินี้ด้วยค่าที่ไม่ใช่ null, Sheetize.SaveOptions.OutputFile จะถูกละเว้น

public Stream OutputStream { get; set; }

ค่า Property

Stream

Namespace: Sheetize Assembly: Sheetize.dll

Class SheetizeException

Info

ข้อยกเว้นที่ถูกโยนเมื่อเกิดข้อผิดพลาดที่กำหนดโดย Aspose.Cells

public class SheetizeException : ApplicationException, ISerializable, _Exception

Inheritance

objectExceptionApplicationExceptionSheetizeException

Implements

Inherited Members

Properties

Code

แทนรหัสข้อยกเว้นที่กำหนดเอง

public ExceptionType Code { get; }

Property Value

ExceptionType

Namespace: Sheetize Assembly: Sheetize.dll

Class SplitterSaveOptions

Info

ตัวเลือกสำหรับการแบ่งไฟล์เทมเพลต.

public class SplitterSaveOptions : SaveOptions  

Inheritance

object
SaveOptions
SplitterSaveOptions

Inherited Members

Constructors

SplitterSaveOptions()

public SplitterSaveOptions()  

Properties

SaveFormat

Gets and sets the format of spreadsheet.

public FileFormatType SaveFormat { get; set; }  

Property Value

FileFormatType

Methods

Finish(Stream)

Finish writing data to the stream.

By default this method just closes the stream directly(including the situation that
the stream is the one specified by Sheetize.SaveOptions.OutputStream).

User may overwrite this method to control how to release resources
according to their requirement and the implementation of Sheetize.SplitterSaveOptions.GetStream(System.Int32).

public virtual void Finish(Stream stream)  

Parameters

  • stream Stream: the stream that has finished its task(saving data to)

GetStream(int)

Gets stream to save the split part.

public virtual Stream GetStream(int sn)  

Parameters

  • sn int: the sequence number of the split part, 0 based.

Returns

Stream : Stream for writing split part to.

Remarks

By default, if Sheetize.SaveOptions.OutputStream has been specified and takes effect,
then this method returns the specified Stream always. User should overwrite this method in his own implementation
of this class to provide different and proper Stream objects for multi-parts output.

If Sheetize.SaveOptions.OutputFile has been specified and takes effect,
then the sequence number will be appended to the file name and then return the FileStream build from the file.
For example, if output path is specified as res.xlsx, then the generated files will be res0.xlsx, res1.xlsx,…

Namespace: Sheetize
Assembly: Sheetize.dll

Class SpreadsheetConverter

Info

Converter สำหรับการแปลงระหว่างรูปแบบไฟล์สเปรดชีตที่แตกต่างกัน เช่น xls, xlsx, xlsb, ods, spreadsheet ml…

public class SpreadsheetConverter  

Inheritance

object
SpreadsheetConverter

Inherited Members

Examples

1  
2
3SpreadsheetConverter converter = new SpreadsheetConverter();  
4LoadOptions loadOptions = new LoadOptions();  
5loadOptions.InputFile = "Template.xlsx";  
6SpreadsheetSaveOptions saveOptions = new SpreadsheetSaveOptions();  
7saveOptions.OutputFile = "res.xlsb";  
8converter.Process(loadOptions, saveOptions);  

Constructors

SpreadsheetConverter()

public SpreadsheetConverter()  

Methods

Process(LoadOptions, SpreadsheetSaveOptions)

แปลงระหว่างรูปแบบไฟล์สเปรดชีตที่แตกต่างกัน

public void Process(LoadOptions loadOptions, SpreadsheetSaveOptions saveOptions)  

Parameters

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

Namespace: Sheetize
Assembly: Sheetize.dll

Class SpreadsheetMerger

Info

รวมไฟล์เทมเพลตหลายไฟล์เป็นไฟล์เดียว.

public class SpreadsheetMerger

การสืบทอด

objectSpreadsheetMerger

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

ตัวอย่าง

1SpreadsheetMerger merger = new SpreadsheetMerger();
2MergerLoadOptions loadOptions = new MergerLoadOptions();
3ArrayList list = new ArrayList();
4list.Add(File.OpenRead("template1.xlsx"));
5list.Add(File.OpenRead("template2.ods"));
6loadOptions.InputStreamEnumerator = list.GetEnumerator();
7SpreadsheetSaveOptions saveOptions = new SpreadsheetSaveOptions();
8saveOptions.OutputFile = "res.xlsx";
9merger.Process(loadOptions, saveOptions);

ตัวสร้าง

SpreadsheetMerger()

public SpreadsheetMerger()

วิธีการ

Process(MergerLoadOptions, SpreadsheetSaveOptions)

public void Process(MergerLoadOptions loadOptions, SpreadsheetSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class SpreadsheetSaveOptions

Info

ตัวเลือกสำหรับการบันทึกรายงานตาราง.

public class SpreadsheetSaveOptions : SaveOptions

การสืบทอด

objectSaveOptionsSpreadsheetSaveOptions

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

ตัวสร้าง

SpreadsheetSaveOptions()

public SpreadsheetSaveOptions()

คุณสมบัติ

SaveFormat

ดึงและตั้งค่าฟอร์แมตของรายงานตาราง.

public FileFormatType SaveFormat { get; set; }

ค่าคุณสมบัติ

FileFormatType

Namespace: Sheetize Assembly: Sheetize.dll

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

Class SpreadsheetUnlocker

Info

ปลดล็อกไฟล์สเปรดชีต.

public class SpreadsheetUnlocker

การสืบทอด

objectSpreadsheetUnlocker

สมาชิกที่ได้รับการสืบทอด

ตัวอย่าง

1SpreadsheetUnlocker processor = new SpreadsheetUnlocker();
2UnlockerLoadOptions loadOptions = new UnlockerLoadOptions();
3loadOptions.InputFile = "Template.xlsx";
4loadOptions.Password = "รหัสผ่านสำหรับเปิดไฟล์";
5SpreadsheetSaveOptions saveOptions = new SpreadsheetSaveOptions();
6saveOptions.OutputFile = "res.xlsx";
7processor.Process(loadOptions, saveOptions);

ตัวสร้าง

SpreadsheetUnlocker()

public SpreadsheetUnlocker()

วิธีการ

Process(UnlockerLoadOptions, SpreadsheetSaveOptions)

public void Process(UnlockerLoadOptions loadOptions, SpreadsheetSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class TextConverter

Info

ตัวแปลงสำหรับการแปลงระหว่างรูปแบบที่อิงจากข้อความ (csv, markdown, dif…) และรูปแบบไฟล์ตารางข้อมูลอื่น ๆ.

public class TextConverter

การสืบทอด

objectTextConverter

รายการที่สืบทอด

ตัวอย่าง

1TextConverter converter = new TextConverter();
2LoadOptions loadOptions = new LoadOptions();
3loadOptions.InputFile = "Template.csv";
4TextSaveOptions saveOptions = new TextSaveOptions();
5saveOptions.OutputFile = "res.xlsx";
6converter.Process(loadOptions, saveOptions);

ตัวสร้าง

TextConverter()

public TextConverter()

วิธีการ

Process(LoadOptions, TextSaveOptions)

แปลงรูปแบบไฟล์ระหว่างรูปแบบที่อิงจากข้อความและรูปแบบไฟล์ตารางข้อมูลอื่น ๆ

public void Process(LoadOptions loadOptions, TextSaveOptions saveOptions)

พารามิเตอร์

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

Namespace: Sheetize Assembly: Sheetize.dll

Class TextSaveOptions

Info

ตัวเลือกในการบันทึก .SQL,.MD, .CSV, .TSV, .TXT, .XML, .DIF.

public class TextSaveOptions : SaveOptions

Inheritance

objectSaveOptionsTextSaveOptions

Inherited Members

Constructors

TextSaveOptions()

public TextSaveOptions()

Properties

SaveFormat

Gets and sets the format of spreadsheet.

public FileFormatType SaveFormat { get; set; }

Property Value

FileFormatType

Namespace: Sheetize Assembly: Sheetize.dll

Class UnlockerLoadOptions

Info

ตัวเลือกในการปลดล็อกไฟล์ Excel.

public class UnlockerLoadOptions : LoadOptions  

การสืบทอด

object
LoadOptions
UnlockerLoadOptions

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

คอนสตรัคเตอร์

UnlockerLoadOptions()

public UnlockerLoadOptions()  

คุณสมบัติ

Password

รหัสผ่านเพื่อเปิดไฟล์.

public string Password { get; set; }  

ค่า Property

string

PasswordToModify

รหัสผ่านเพื่อแก้ไขไฟล์.

public string PasswordToModify { get; set; }  

ค่า Property

string

PasswordToUnprotectWorkbook

รหัสผ่านเพื่อปลดล็อกสมุดงาน.

public string PasswordToUnprotectWorkbook { get; set; }  

ค่า Property

string

PasswordToUnprotectWorksheet

รหัสผ่านเพื่อปลดล็อกแผ่นงาน.

public string PasswordToUnprotectWorksheet { get; set; }  

ค่า Property

string

namespace: Sheetize
Assembly: Sheetize.dll

Enum ExceptionType

Info

แทนรหัสประเภทข้อยกเว้นที่กำหนดเอง.

public enum ExceptionType

Fields

  • DataType = 0: การตั้งค่าประเภทข้อมูลที่ไม่ถูกต้อง.
  • FileCorrupted = 13: เนื้อหาของไฟล์เสียหาย.
  • FileFormat = 1: รูปแบบไฟล์ไม่ถูกต้อง.
  • IO = 8: ไฟล์ไม่ถูกต้อง.
  • IncorrectPassword = 4: รหัสผ่านไม่ถูกต้อง.
  • Interrupted = 7: กระบวนการถูกขัดจังหวะ.
  • InvalidData = 2: ข้อมูลไม่ถูกต้อง.
  • InvalidOperator = 3: ตัวดำเนินการที่ไม่ถูกต้อง.
  • License = 5: ข้อผิดพลาดที่เกี่ยวข้องกับใบอนุญาต.
  • Limitation = 6: ข้อผิดพลาดเกินขีดจำกัดของ MS Excel.
  • Permission = 9: จำเป็นต้องมีสิทธิ์ในการเปิดไฟล์นี้.
  • UndisclosedInformation = 12: ไฟล์มีข้อมูลที่ไม่เปิดเผยบางอย่าง.
  • UnsupportedFeature = 10: ฟีเจอร์ที่ไม่สนับสนุน.
  • UnsupportedStream = 11: สตรีมที่ไม่สนับสนุนที่จะเปิด.

Namespace: Sheetize Assembly: Sheetize.dll

2 พ.ย. 2024

Enum FileFormatType

Info

แสดงรูปแบบไฟล์ที่รองรับสำหรับการแปลง.

public enum FileFormatType

Fields

  • Auto = 0: หากบันทึกไฟล์ลงดิสก์ รูปแบบไฟล์จะตรงกับนามสกุลของชื่อไฟล์ หากบันทึกไฟล์ลงในสตรีม รูปแบบไฟล์จะเป็น xlsx.
  • Azw3 = 773: แสดงไฟล์ Azw3.
  • Bmp = 263: Windows Bitmap
  • Csv = 1: ไฟล์ข้อความที่คั่นด้วยเครื่องหมายจุลภาค (CSV).
  • Dif = 30: รูปแบบการแลกเปลี่ยนข้อมูล.
  • Docx = 62: แสดงไฟล์ .docx.
  • Emf = 258: Windows Enhanced Metafile.
  • Epub = 772: แสดงไฟล์ Epub.
  • Excel97To2003 = 5: แสดงไฟล์ Excel97-2003 xls.
  • Fods = 59: แสดงรูปแบบไฟล์ OpenDocument Flat XML Spreadsheet (.fods).
  • Gif = 322: Gif
  • Html = 12: แสดงไฟล์ html.
  • Jpg = 261: JPEG JFIF.
  • Json = 513: Json
  • MHtml = 17: แสดงไฟล์ mhtml.
  • Markdown = 57: แสดงเอกสาร markdown.
  • Numbers = 56: แสดงไฟล์ numbers. ไม่รองรับ.
  • Ods = 14: ไฟล์ Open Document Sheet (ODS).
  • Ots = 31: ไฟล์ Open Document Template Sheet (OTS).
  • Pdf = 13: แสดงไฟล์ Pdf.
  • Png = 262: Portable Network Graphics.
  • Pptx = 61: แสดงไฟล์ .pptx.
  • SpreadsheetML = 15: แสดงไฟล์ xml ของ Excel 2003.
  • SqlScript = 514: Sql
  • Svg = 28: ไฟล์ SVG.
  • Sxc = 60: แสดงรูปแบบไฟล์ StarOffice Calc Spreadsheet (.sxc).
  • TabDelimited = 11: แสดงไฟล์ข้อความที่คั่นด้วยแท็บ เจาะจงเช่นเดียวกับ Sheetize.FileFormatType.Tsv.
  • Tiff = 21: แสดงไฟล์ TIFF.
  • Tsv = 11: ไฟล์ข้อความที่คั่นด้วยแท็บ (TSV).
  • Unknown = 255: แสดงรูปแบบที่ไม่รู้จัก ไม่สามารถบันทึกได้.
  • XHtml = 771: แสดงไฟล์ XHtml.
  • Xlam = 10: แสดงไฟล์ xltm ที่เปิดใช้งานมาโครของส่วนเสริม.
  • Xlsb = 16: แสดงไฟล์ xlsb.
  • Xlsm = 7: แสดงไฟล์ xlsm ที่เปิดใช้งานมาโคร.
  • Xlsx = 6: แสดงไฟล์ xlsx.
  • Xlt = 32: ไฟล์แม่แบบ Excel 97-2003.
  • Xltm = 9: แสดงไฟล์ xltm ที่เปิดใช้งานมาโคร.
  • Xltx = 8: แสดงไฟล์ xltx.
  • Xml = 51: แสดงไฟล์ xml แบบธรรมดา.
  • Xps = 20: รูปแบบ XPS (XML Paper Specification).

Namespace: Sheetize Assembly: Sheetize.dll

2 พ.ย. 2024

Enum ImageType

Info

ระบุประเภท (รูปแบบ) ของภาพ.

public enum ImageType

Fields

  • Bmp = 7: Windows Bitmap
  • Emf = 2: Windows Enhanced Metafile.
  • Gif = 66: Gif
  • Jpeg = 5: JPEG JFIF.
  • OfficeCompatibleEmf = 71: Windows Enhanced Metafile ซึ่งรองรับกับ Office ได้ดียิ่งขึ้น.
  • Pict = 4: Macintosh PICT.
  • Png = 6: Portable Network Graphics.
  • Svg = 68: Svg
  • Svm = 69: Svm
  • Tiff = 67: Tiff
  • Unknown = 0: ประเภทภาพที่ไม่รู้จัก.
  • WebP = 72: รูปแบบภาพ Weppy
  • Wmf = 3: Windows Metafile.

Namespace: Sheetize Assembly: Sheetize.dll

 แบบไทย