Document Processing
Documents that are generated on a schedule, processed without a browser or combined with data that must remain on the server belong in a backend. TX Sheet Control processes them there with ServerSheetControl, which exists for .NET and for Node.js. Both tutorials load an XLSX file, write values into cells and save the workbook as PDF, and the .NET tutorial also creates a workbook from scratch.
How Server Processing Works
The server packages work the same way on both platforms:
- A control per document.
ServerSheetControlowns an independent workbook. You load a file into it or start with its own workbook. Then you change cells and formulas and save the result as XLSX, TXWB or PDF. - No editor. The server packages need no browser editor package, and their workbook APIs work without a DOM. They include their processing resources and fonts.
- Awaited operations. You await loading and saving before you use a result, and you release the control when the job is done.
- Licensing. Configure a signed license for server processing; Developer and OEM server PDFs have no licensing watermark.
- Several jobs. Independent jobs get separate controls or documents, and you bound the number of concurrent jobs.
Choose a Platform
| .NET | Node.js | |
|---|---|---|
| Package | TXTextControl.TXSheetControl.Server | @txtextcontrol/tx-sheet-control-server |
| Requires | .NET 10 or newer | ES modules, or CommonJS require |
| Load and save | LoadAsync and SaveAsync with a file name | load with the file bytes, save returns bytes |
| Release the control | await using | destroy() in a finally block |
| Tutorial | .NET | Node.js |
Both packages install independently, and each one brings its own fonts. Deploy the complete build and publish output of a .NET application, and the complete installed package of a Node.js application.
Pages in This Section
- .NET: convert an XLSX file to PDF with
ServerSheetControl, create a workbook with a formula and handle requests in a service. - Node.js: convert an XLSX file to PDF in an ES module, configure fonts and release the control after errors.
The Document Processing section goes further, with loading and saving, CSV, XML and JSON data, backend services and concurrency. Mail Merge fills workbook templates from JSON records.