TX Sheet Control

Backend Services

Topic

You can create reports without a browser. Use the .NET server package TXTextControl.TXSheetControl.Server or the Node.js server package @txtextcontrol/tx-sheet-control-server to create them in a backend service, and keep document processing separate from host authentication, storage, data retrieval and delivery.

The sections below describe the flow of a request, the response, pooling, where the data comes from and what to check before a deployment.

Handle a Request

Handle a request for a report in this order:

  1. Validate the requested template and the authorized data.
  2. Load a clean workbook.
  3. Apply the values or the merge.
  4. Check the warnings and results.
  5. Export.
  6. Return the bytes.

Warning

Untrusted Paths. Do not accept arbitrary filesystem paths or server resource directories from an untrusted request.

Return the Result

  • In ASP.NET Core, return the PDF bytes with an appropriate content type and download name after awaiting the processing operation.
  • In Node.js, send a Buffer or Uint8Array through the framework's response API.

Preserve cancellation and error handling rather than writing a partial success response before the export completes.

Reuse Controls in a Pool

A warm pool can reduce repeated initialization, but each job needs isolated document state:

  • Bound the pool.
  • Implement timeouts and cancellation.
  • Reload a clean template for reused owners.

Measure actual job latency and queue time. Backend capacity is not determined by a single small-document test.

Get the Data

Fetch application data through your authorized service layer. The generic and HTTP data APIs are optional integrations exposed through the main packages. No SQL or Ado.NET connector package and no database setup is required for worksheet-based reports and dashboards.

Check the Deployment

  • Run from the normal build and publish folders of the application to verify the copied fonts and resources.
  • Test non-English glyphs and long reports.
  • Log useful warning and error summaries without including license strings or private customer data.

Next Steps