Subsections of Sheetize Namespace
Class EbookConverter
Info
ตัวแปลงสำหรับการแปลงระหว่าง ebook และรูปแบบไฟล์สเปรดชีตอื่นๆ.
public class EbookConverter
การสืบทอด
object ←
EbookConverter
สมาชิกที่สืบทอด
ตัวอย่าง
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()
เมธอด
Process(LoadOptions, EbookSaveOptions)
แปลงระหว่าง ebook และรูปแบบไฟล์สเปรดชีตอื่นๆ.
public void Process(LoadOptions loadOptions, EbookSaveOptions saveOptions)
พารามิเตอร์
Class EbookSaveOptions
Info
ตัวเลือกสำหรับการบันทึก .EPUB, .AZW3.
public class EbookSaveOptions : SaveOptions
การสืบทอด
object ←
SaveOptions ←
EbookSaveOptions
สมาชิกที่สืบทอดมา
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
คอนสตรัคเตอร์
EbookSaveOptions()
public EbookSaveOptions()
คุณสมบัติ
ดึงและตั้งค่าฟอร์แมตของสเปรดชีต
public FileFormatType SaveFormat { get; set; }
ค่าของคุณสมบัติ
FileFormatType
Class HtmlConverter
Info
เครื่องมือแปลงสำหรับการแปลงระหว่างไฟล์ html (html, mht, …) และรูปแบบไฟล์สเปรดชีตอื่น ๆ.
public class HtmlConverter
การสืบทอด
object ←
HtmlConverter
สมาชิกที่สืบทอด
ตัวอย่าง
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()
วิธีการ
Process(LoadOptions, HtmlSaveOptions)
แปลงไฟล์ระหว่าง html และรูปแบบไฟล์สเปรดชีตอื่น ๆ.
public void Process(LoadOptions loadOptions, HtmlSaveOptions saveOptions)
พารามิเตอร์
Class HtmlSaveOptions
Info
ตัวเลือกในการบันทึก html.
public class HtmlSaveOptions : SaveOptions
การสืบทอด
object ←
SaveOptions ←
HtmlSaveOptions
สมาชิกที่ถูกสืบทอด
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
ตัวสร้าง
HtmlSaveOptions()
คุณสมบัติ
รับและตั้งค่าฟอร์แมตของสเปรดชีต.
public FileFormatType SaveFormat { get; set; }
ค่าโปรperty
FileFormatType
Class ImageConverter
Info
เครื่องมือแปลงสำหรับการแปลงไฟล์แม่แบบเป็น pdf.
public class ImageConverter
การสืบทอด
object ←
ImageConverter
สมาชิกที่สืบทอดมา
ตัวอย่าง
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()
วิธีการ
Process(LoadOptions, ImageSaveOptions)
แปลงไฟล์แม่แบบเป็นภาพ
public void Process(LoadOptions loadOptions, ImageSaveOptions saveOptions)
พารามิเตอร์
Class ImageSaveOptions
Info
ตัวเลือกสำหรับการบันทึกรูปภาพ.
public class ImageSaveOptions : SaveOptions
Inheritance
object ←
SaveOptions ←
ImageSaveOptions
Inherited Members
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
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
ค่าเริ่มต้นคือ 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
ค่าเริ่มต้นคือ 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 : สตรีมสำหรับเขียนภาพที่สร้างขึ้น.
โดยค่าเริ่มต้น หาก Sheetize.SaveOptions.OutputStream ได้ถูกระบุและมีผล,
เมธอดนี้จะส่งคืนสตรีมที่ระบุเสมอ ผู้ใช้ควรเขียนทับเมธอดนี้ในการดำเนินการของเขาเอง
ของคลาสนี้เพื่อนำเสนอวัตถุสตรีมที่แตกต่างและเหมาะสมสำหรับผลลัพธ์หลายหน้า.
หาก Sheetize.SaveOptions.OutputFile ได้ถูกระบุและมีผล,
หากมีภาพอยู่เพียงหน้าเดียว จะใช้เส้นทางที่ระบุ (ไฟล์) โดยตรงเป็นผลลัพธ์;
ไม่เช่นนั้นจะมีการต่อท้ายดัชนีหน้ากับชื่อไฟล์และส่งคืน FileStream ที่สร้างจากไฟล์.
ตัวอย่างเช่น หากเส้นทางเอาต์พุตถูกกำหนดเป็น res.png จะมีการสร้างภาพเป็น res0.png, res1.png, …
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()
Methods
Process(LoadOptions, JsonSaveOptions)
แปลงระหว่างข้อมูล JSON และรูปแบบไฟล์สเปรดชีตอื่น ๆ.
public void Process(LoadOptions loadOptions, JsonSaveOptions saveOptions)
Parameters
Class JsonSaveOptions
Info
ตัวเลือกสำหรับการบันทึก json.
public class JsonSaveOptions : SaveOptions
การสืบทอด
object ←
SaveOptions ←
JsonSaveOptions
สมาชิกที่สืบทอด
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
ตัวสร้าง
JsonSaveOptions()
คุณสมบัติ
Gets and sets the format of spreadsheet.
public FileFormatType SaveFormat { get; set; }
ค่า Property
FileFormatType
Class License
Info
ทำให้ผลิตภัณฑ์มีใบอนุญาต.
Inheritance
object ←
License
Inherited Members
Examples
1Sheetize.License license = new Sheetize.License();
2license.SetLicense("mylic.lic");
Constructors
License()
Methods
SetLicense(Stream)
ทำให้ผลิตภัณฑ์มีใบอนุญาตโดยใช้ Stream ที่ให้ข้อมูลใบอนุญาต
public void SetLicense(Stream stream)
Parameters
SetLicense(string)
ทำให้ผลิตภัณฑ์มีใบอนุญาตโดยใช้ไฟล์ใบอนุญาต
public void SetLicense(string licenseName)
Parameters
Class LoadOptions
Info
ตัวเลือกสำหรับการโหลดไฟล์แม่แบบ.
Inheritance
object ←
LoadOptions
Derived
Inherited Members
Constructors
LoadOptions()
Properties
Gets and sets the file(with path if needed) of the template.
public string InputFile { get; set; }
Property Value
string
เมื่อกำหนดเส้นทางที่ไม่เป็น null และไม่ว่างให้กับคุณสมบัตินี้,
ค่าที่ตั้งไว้ก่อนหน้าสำหรับ Sheetize.LoadOptions.InputStream จะถูกละเลย
Gets and sets the Stream of the template.
public Stream InputStream { get; set; }
Property Value
Stream
เมื่อกำหนด Stream ที่ไม่เป็น null ให้กับคุณสมบัตินี้,
ค่าที่ตั้งไว้ก่อนหน้าสำหรับ Sheetize.LoadOptions.InputFile จะถูกละเลย
Class MergerLoadOptions
Info
ตัวเลือกสำหรับการรวมหลายไฟล์.
public class MergerLoadOptions : LoadOptions
การสืบทอด
object ←
LoadOptions ←
MergerLoadOptions
สมาชิกที่สืบทอด
- LoadOptions.InputFile,
- LoadOptions.InputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
ตัวสร้าง
MergerLoadOptions()
public MergerLoadOptions()
คุณสมบัติ
ดึง/ตั้งค่าสตรีมอินพุตที่ใช้ในการโหลดข้อมูลและรวมไฟล์
public IEnumerator InputStreamEnumerator { get; set; }
ค่าของคุณสมบัติ
IEnumerator
วิธีการ
Finish(Stream)
ทำการโหลดข้อมูลจากสตรีม (ได้มาจาก Sheetize.MergerLoadOptions.InputStreamEnumerator).
ตามค่าเริ่มต้นวิธีนี้จะปิดสตรีมโดยตรง
ผู้ใช้สามารถเขียนทับวิธีนี้เพื่อควบคุมวิธีการปล่อยทรัพยากรตามความต้องการของตนและการใช้งานของ Sheetize.MergerLoadOptions.InputStreamEnumerator.
public virtual void Finish(Stream stream)
พารามิเตอร์
stream
Stream: สตรีมที่เสร็จสิ้นการทำงาน (การบันทึกข้อมูลไปยัง)
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()
วิธีการ
Process(LoadOptions, PdfSaveOptions)
แปลงไฟล์เทมเพลตเป็น pdf
public void Process(LoadOptions loadOptions, PdfSaveOptions saveOptions)
พารามิเตอร์
Class PdfSaveOptions
Info
ตัวเลือกสำหรับการบันทึก pdf.
public class PdfSaveOptions : SaveOptions
Inheritance
object ←
SaveOptions ←
PdfSaveOptions
Inherited Members
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
Constructors
PdfSaveOptions()
Class SaveOptions
Info
ตัวเลือกสำหรับการบันทึกไฟล์.
การสืบทอด
object ←
SaveOptions
สืบทอด
สมาชิกที่สืบทอด
ตัวสร้าง
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
Class SheetizeException
Info
ข้อยกเว้นที่ถูกโยนเมื่อเกิดข้อผิดพลาดที่กำหนดโดย Aspose.Cells
public class SheetizeException : ApplicationException, ISerializable, _Exception
Inheritance
object ←
Exception ←
ApplicationException ←
SheetizeException
Implements
Inherited Members
- Exception.GetBaseException(),
- Exception.ToString(),
- Exception.GetObjectData(SerializationInfo, StreamingContext),
- Exception.GetType(),
- Exception.Message,
- Exception.Data,
- Exception.InnerException,
- Exception.TargetSite,
- Exception.StackTrace,
- Exception.HelpLink,
- Exception.Source,
- Exception.HResult,
- Exception.SerializeObjectState,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
Properties
Code
แทนรหัสข้อยกเว้นที่กำหนดเอง
public ExceptionType Code { get; }
Property Value
ExceptionType
Class SplitterSaveOptions
Info
ตัวเลือกสำหรับการแบ่งไฟล์เทมเพลต.
public class SplitterSaveOptions : SaveOptions
Inheritance
object ←
SaveOptions ←
SplitterSaveOptions
Inherited Members
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
Constructors
SplitterSaveOptions()
public SplitterSaveOptions()
Properties
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.
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,…
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
Class SpreadsheetMerger
Info
รวมไฟล์เทมเพลตหลายไฟล์เป็นไฟล์เดียว.
public class SpreadsheetMerger
การสืบทอด
object ←
SpreadsheetMerger
สมาชิกที่สืบทอด
ตัวอย่าง
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)
พารามิเตอร์
Class SpreadsheetSaveOptions
Info
ตัวเลือกสำหรับการบันทึกรายงานตาราง.
public class SpreadsheetSaveOptions : SaveOptions
การสืบทอด
object ←
SaveOptions ←
SpreadsheetSaveOptions
สมาชิกที่สืบทอด
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
ตัวสร้าง
SpreadsheetSaveOptions()
public SpreadsheetSaveOptions()
คุณสมบัติ
ดึงและตั้งค่าฟอร์แมตของรายงานตาราง.
public FileFormatType SaveFormat { get; set; }
ค่าคุณสมบัติ
FileFormatType
Class SpreadsheetSplitter
Info
แบ่งไฟล์สเปรดชีตออกเป็นหลายส่วน.
public class SpreadsheetSplitter
การสืบทอด
object ←
SpreadsheetSplitter
สมาชิกที่สืบทอด
ตัวอย่าง
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)
พารามิเตอร์
Class SpreadsheetUnlocker
public class SpreadsheetUnlocker
การสืบทอด
object ←
SpreadsheetUnlocker
สมาชิกที่ได้รับการสืบทอด
ตัวอย่าง
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)
พารามิเตอร์
Class TextConverter
Info
ตัวแปลงสำหรับการแปลงระหว่างรูปแบบที่อิงจากข้อความ (csv, markdown, dif…) และรูปแบบไฟล์ตารางข้อมูลอื่น ๆ.
public class TextConverter
การสืบทอด
object ←
TextConverter
รายการที่สืบทอด
ตัวอย่าง
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()
วิธีการ
Process(LoadOptions, TextSaveOptions)
แปลงรูปแบบไฟล์ระหว่างรูปแบบที่อิงจากข้อความและรูปแบบไฟล์ตารางข้อมูลอื่น ๆ
public void Process(LoadOptions loadOptions, TextSaveOptions saveOptions)
พารามิเตอร์
Class TextSaveOptions
Info
ตัวเลือกในการบันทึก .SQL,.MD, .CSV, .TSV, .TXT, .XML, .DIF.
public class TextSaveOptions : SaveOptions
Inheritance
object ←
SaveOptions ←
TextSaveOptions
Inherited Members
- SaveOptions.OutputFile,
- SaveOptions.OutputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
Constructors
TextSaveOptions()
Properties
SaveFormat
Gets and sets the format of spreadsheet.
public FileFormatType SaveFormat { get; set; }
Property Value
FileFormatType
Class UnlockerLoadOptions
Info
ตัวเลือกในการปลดล็อกไฟล์ Excel.
public class UnlockerLoadOptions : LoadOptions
การสืบทอด
object ←
LoadOptions ←
UnlockerLoadOptions
สมาชิกที่สืบทอด
- LoadOptions.InputFile,
- LoadOptions.InputStream,
- object.ToString(),
- object.Equals(object),
- object.Equals(object, object),
- object.ReferenceEquals(object, object),
- object.GetHashCode(),
- object.GetType(),
- object.MemberwiseClone()
คอนสตรัคเตอร์
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
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
: สตรีมที่ไม่สนับสนุนที่จะเปิด.
Info
แสดงรูปแบบไฟล์ที่รองรับสำหรับการแปลง.
public enum FileFormatType
Fields
Auto = 0
: หากบันทึกไฟล์ลงดิสก์ รูปแบบไฟล์จะตรงกับนามสกุลของชื่อไฟล์ หากบันทึกไฟล์ลงในสตรีม รูปแบบไฟล์จะเป็น xlsx.Azw3 = 773
: แสดงไฟล์ Azw3.Bmp = 263
: Windows BitmapCsv = 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
: GifHtml = 12
: แสดงไฟล์ html.Jpg = 261
: JPEG JFIF.Json = 513
: JsonMHtml = 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
: SqlSvg = 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).
Enum ImageType
Info
ระบุประเภท (รูปแบบ) ของภาพ.
Fields
Bmp = 7
: Windows BitmapEmf = 2
: Windows Enhanced Metafile.Gif = 66
: GifJpeg = 5
: JPEG JFIF.OfficeCompatibleEmf = 71
: Windows Enhanced Metafile ซึ่งรองรับกับ Office ได้ดียิ่งขึ้น.Pict = 4
: Macintosh PICT.Png = 6
: Portable Network Graphics.Svg = 68
: SvgSvm = 69
: SvmTiff = 67
: TiffUnknown = 0
: ประเภทภาพที่ไม่รู้จัก.WebP = 72
: รูปแบบภาพ WeppyWmf = 3
: Windows Metafile.