C# .NET XLSX сплитер API за разделяне на един XLSX файл на няколко едностранични или многостранични XLSX файла. Разделете документи и изображения с помощта на различни филтри, като посочите точни номера на страници, начални или крайни номера на страници и четни или нечетни номера на страници. Извършете операция за разделяне, за да разделите HTML, PDF, Text, OpenDocument, Microsoft Word, Excel, PowerPoint, Visio и OneNote документи на множество получени документи.
ИзтеглиРазделете един XLSX документ на множество независими документи и вмъкнете изображение или текстови водни знаци към всеки от разделените файлове с помощта на C# .NET.
Необходими са ви пространства от имена GroupDocs.Merger
& GroupDocs.Watermark
, за да извършвате операции за разделяне на документи в PDF, Microsoft Office, HTML, OpenDocument и много други файлови формати. Разгледайте други .NET API за документи на Office, предлагани от Conholdate.Total.
Вземете съответните асемблиращи файлове от изтегляния или изтеглете целия пакет от NuGet, за да добавите Conholdate.Total
директно във вашето работно пространство.
// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats | |
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/ | |
using (Watermarker watermarker = new Watermarker("input.pdf")) | |
{ | |
Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); | |
TextWatermark watermark = new TextWatermark("my watermark", font); | |
watermark.ForegroundColor = Color.Red; | |
watermark.BackgroundColor = Color.Blue; | |
watermark.TextAlignment = TextAlignment.Right; | |
watermark.Opacity = 0.5; | |
watermarker.Add(watermark); | |
watermarker.Save("output.pdf"); | |
} | |
string outputFolder = @"c:\output\"; | |
SplitOptions splitOptions = new SplitOptions(outputFolder + "document_{0}.{1}", new int[] { 1, 2, 4 }); | |
using (Merger merger = new Merger("output.pdf")) | |
{ | |
merger.Split(splitOptions); | |
} |
Използване на библиотека за разделяне на текст за .NET приложения – разделете всеки ред или няколко реда от изходния текстов файл в отделен получен .txt файл, като използвате няколко реда C# код.
Изпълнявайте многофункционални функции за манипулиране на документи в различни формати на документи като Word, електронна таблица на Excel, презентации, RTF, PDF, Visio, HTML, OneNote, XPS и много други, като добавите само няколко реда C# код.
Основните операции с един документ включват преместване на страници в документа на нова позиция, премахване на отделна страница или колекция или избрани страници, смяна на позициите на страницата, извличане на конкретни страници от документа, промяна на ориентацията на страницата в портретен или пейзажен режим и завъртане страниците на изходния документ под ъгъл от 90, 180 или 270 градуса.
// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats | |
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/ | |
string filePath = @"c:\sample.txt"; | |
string filePathOut = @"c:\output\line_{0}.{1}"; | |
TextSplitOptions splitOptions = new TextSplitOptions(filePathOut, new int[] { 3, 6 }); | |
using (Merger merger = new Merger(filePath)) | |
{ | |
merger.Split(splitOptions); | |
} |
XLSX is a file format used by Microsoft Excel, a spreadsheet application. It stands for “Excel Spreadsheet Exchange” and is based on the Open XML file format, which is an open standard for spreadsheets. It is used to store and exchange data between applications, and is supported by many programs, including Microsoft Excel, OpenOffice Calc, and Google Docs. XLSX files are structured differently than traditional XLS files – they are XML-based. This means that the data itself is stored in the file in XML format, which makes it more compact and secure than traditional XLS files. XLSX files also use ZIP compression, which reduces their size even further, and makes them easier to send over the internet. XLSX files are the default format for Microsoft Excel and are the best choice for sharing data between different types of applications and platforms. They can also be opened and edited in many other programs, including Apple Numbers and Apache OpenOffice. XLSX files are a convenient file format for sharing data, and are widely used across a range of industries.
Уча(Portable Document Format)
(word processing Files)
(Spreadsheet Management)
(Visio Files)
(Web Files)
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(Rich Text Format)
(Text Document)
(Microsoft Excel Spreadsheet (Legacy))
(Excel Binary Workbook)
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)
(Excel Macro-Enabled Add-In)
(Comma Seperated Values)
(Tab Seperated Values)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(The 7th Guest Video File)
(Visio Macro-Enabled Drawing)
(Visio Drawing)
(Visio Macro-Enabled Stencil File)
(Visio Stencil File)
(Visio Macro-Enabled Drawing Template)
(Visio Drawing Template)
(Visio Stencil XML File)
(Anim8or 3D Model)
(OneNote Document)
(Hyper Text Markup Language)
(MHTML Web Archive)
(Web Page Archive Format)
(OpenDocument Presentation Format)
(OpenDocument Spreadsheet)
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(OpenDocument Standard Format)
(Open eBook File)
(PostScript File)
(LaTeX Source Document)
(XML Paper Specifications)