Document Processing
Much of what a Windows Forms application does with documents happens in code rather than in the editor: building a report, converting a file, printing a letter. Three tutorials show these tasks with ServerTextControl, the document engine without a user interface, and with the TextControl on your form, each as a few button handlers.
Choose a Tutorial
| Tutorial | You learn to | Main members |
|---|---|---|
| Create a Document Programmatically | Build a document with formatted text, a table, an image and a header, and show it in the editor | ServerTextControl, Selection, Tables, Images, HeadersAndFooters |
| Save as DOCX and PDF | Export the editor's document, convert files without the editor, save to byte arrays and create PDF/A | Save, StreamType, BinaryStreamType |
| Print a Document | Print with the print dialog, show a preview, print without a dialog and print files | Print, PrintPreview, FormattingPrinter |
Before You Start
- Complete Create Your First Windows Forms Application. The tutorials add buttons to its form with the
TextControlnamedtextControl1. - Read ServerTextControl in the Overview if the component is new to you: it explains why it has to be initialized with
Createand disposed.
The tutorials build on each other in the order above, but each one can be followed on its own.
After These Tutorials
- Mail Merge: fill templates with data instead of building documents in code.
- PDF Processing: PDF options, PDF forms and digital signatures.
- Document Processing: creating, loading, converting and printing documents in detail.