sgcDocs. Office files. No Office needed.
sgcDocs is a headless Office file API for Delphi, C++Builder and .NET: create, read and convert Word documents and spreadsheets, run mail merges, process PDF files, render barcodes and build ZIP64 archives, with no Office installation and no UI framework, on Windows and Linux.
- Delphi 7 to 13
- C++ Builder 2007 to 13
- .NET
- Windows
- Linux 64 bit

- 7components: Word, mail merge, spreadsheet, PDF, barcode, ZIP and converter
- 63conversion pairs between 14 formats, taken from the file extensions
- 320spreadsheet functions, LET, LAMBDA and named LAMBDA included
- 0Office installations needed, on Windows and on Linux 64 bit
Seven components, no window.
The components need no form and no parent. Create them in a console program, a Windows service or a web server, call their methods and free them.
Word documents
TsgcDocsWordProcessorreads DOCX and saves DOCX, RTF, HTML, Markdown, text, PDF, PDF/A and PDF/UA.Mail merge
TsgcDocsMailMergefills MERGEFIELD, IF and nested fields and table regions from data sets, JSON or CSV.Spreadsheets
TsgcDocsSpreadsheetreads and writes XLSX and ODS, keeps the charts and prints sheets to PDF.PDF tools
TsgcDocsPDFProcessormerges, splits, rotates, fills forms, encrypts, signs and converts to PDF/A.Conversion
TsgcDocsConverterconverts 63 format pairs and writes pages as PNG images.Barcodes
TsgcDocsBarcodedraws 1D and 2D barcodes to PNG or SVG and validates their data.ZIP64 archives
TsgcDocsZipArchivebuilds archives larger than 4 GB and lists every entry with its metadata.Headless
No Office, no VCL, FireMonkey, WinForms or WPF. The same code runs on Windows and Linux 64 bit.
A DOCX, a PDF and an HTML file in a few lines.
TsgcDocsWordProcessor builds the document, saves it as DOCX and exports it to PDF. TsgcDocsConverter then takes both formats from the file extensions.
No form, no parent, no Office. More sgcDocs examples
uses
SysUtils, Classes,
// sgc
sgcDocs_Types, sgcDocs_Word, sgcDocs_Converter;
procedure CreateReport;
var
oWord: TsgcDocsWordProcessor;
oConverter: TsgcDocsConverter;
begin
oWord := TsgcDocsWordProcessor.Create(nil);
try
oWord.New;
oWord.AppendParagraph('Quarterly report', 'Heading 1');
oWord.AppendParagraph('Sales grew 12% in the third quarter.');
oWord.SaveToFile('report.docx');
oWord.ExportToPDFFile('report.pdf');
finally
oWord.Free;
end;
oConverter := TsgcDocsConverter.Create(nil);
try
// the formats come from the file extensions
oConverter.Convert('report.docx', 'report.html');
oConverter.Convert('report.docx', 'report.md');
finally
oConverter.Free;
end;
end;
Part of sgcUI.
sgcDocs is included in sgcUI Enterprise and All-Access. It is not sold on its own. Each comes with source code.
Standard
sgcGrid, sgcNavigation, sgcToolbar, sgcEditors and sgcLocalization.
All-Access
Every eSeGeCe product, sgcUI Enterprise and sgcWebSockets included.
sgcDocs requires sgcUICore, sgcPDF, sgcUIPDF, sgcGrid, sgcCharts, sgcSpreadsheet and sgcRichEdit, which are all in sgcUI Enterprise, and the installer adds them. The .NET package esegece.sgcDocs ships with the Registered .NET download. There is no free Community edition.
Works with the rest of sgcUI.
sgcDocs needs no window. When your users should see or edit its files, these sgcUI products show them on screen.

sgcRichEdit
A rich text editor for the documents that sgcDocs creates, with DOCX and PDF export.

sgcSpreadsheet
An Excel style spreadsheet control for the workbooks that sgcDocs writes.

sgcPDF
The PDF library that sgcDocs builds on, with a viewer for the PDF files it writes.
Professional adds
Enterprise adds
Put sgcDocs to work in your own application today.
The sgcUI trial includes sgcDocs and every other sgcUI product. Run the WordCreate, MailMerge, SpreadsheetCreate and PDFTools demos, or browse every feature first.


