TX Sheet Control

Document Processing

Topic

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. ServerSheetControl owns 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

.NETNode.js
PackageTXTextControl.TXSheetControl.Server@txtextcontrol/tx-sheet-control-server
Requires.NET 10 or newerES modules, or CommonJS require
Load and saveLoadAsync and SaveAsync with a file nameload with the file bytes, save returns bytes
Release the controlawait usingdestroy() in a finally block
Tutorial.NETNode.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.