TX Sheet Control

Deployment Overview

Topic

Each package of TX Sheet Control consists of more than the file your code references: the editor needs its font files, and the server packages need their engine and fonts. The table below shows what each kind of application deploys, and the sections after it explain each row. The packages are independent: an editor-only application deploys no server package, and a server-only application deploys no editor.

ApplicationDeployWhere the fonts are
Plain HTML pageThe browser folder of the download: tx-sheet-control.min.js and the fonts folderfonts/ next to the script, found through fontCatalogURL
JavaScript, TypeScript or Angular with npmYour build output and a copy of the package's dist/fonts folderThe copied fonts/ folder, found through fontCatalogURL
ASP.NET Core with Razor Pages or MVCThe complete dotnet publish outputwwwroot/_content/TXTextControl.TXSheetControl.AspNetCore/fonts/
Blazor Server or WebAssemblyThe complete dotnet publish outputwwwroot/_content/TXTextControl.TXSheetControl.Blazor/fonts/
.NET processingThe complete dotnet publish outputtx-sheet-engine/fonts/ next to the application
Node.js processingYour application and the installed package node_modules/@txtextcontrol/tx-sheet-control-serverdist/fonts/ inside the package

Every application also needs the license, as Licensing describes.

Deploy a Browser Editor

The editor needs its script and its font folder. The script contains the styles, which it installs inside the editor's Shadow DOM, and the English and German interface texts, so the style sheet tx-sheet-control.css and the languages folder are not required at run time. Keep the license and notice files with the fonts.

A bundler such as Vite or webpack bundles the script, but it does not copy the font folder. Copy node_modules/@txtextcontrol/tx-sheet-control/dist/fonts into the static files of your application and set fontCatalogURL to its catalog.json. Without that option, the editor requests /sheet-fonts/catalog.json. Static Assets and Offline Hosting describes the files and the URLs.

Deploy an ASP.NET Core or Blazor Editor

The Tag Helper and the Blazor component load the editor and its fonts from the static web assets of their package. dotnet publish copies them into the wwwroot/_content folder of the output, and the application serves them itself. No font service and no Server package is required. See ASP.NET Core Applications and Blazor Applications.

Deploy .NET and Node.js Processing

  • .NET. dotnet publish copies the engine, the fonts and the notices into the folder tx-sheet-engine of the output, next to the native V8 libraries in runtimes. Deploy the folder with the application and do not serve it as web content. See .NET Server Applications.
  • Node.js. The package finds its engine and fonts inside its own folder. Deploy node_modules/@txtextcontrol/tx-sheet-control-server complete, also when you bundle your own code. See Node.js Server Applications.

Check the Deployment

Run an acceptance check on the deployed application, with the license it uses in production:

  1. Open or create a workbook.
  2. Calculate a known formula.
  3. Load an XLSX file.
  4. Export XLSX and PDF.
  5. Load a TXWB dashboard, a workbook in the format that keeps its dashboards.
  6. Check the fonts in the PDF and the branding of the license: an OEM license adds no watermark.

Test the deployed location rather than a development folder, which can supply files the deployment lacks. When a step fails, look up its message in Deployment Problems.

Next Steps

  • Licensing: the license your deployment needs, its configuration and export branding.
  • Font Handling: see where the fonts come from and how the editor and the server find them.
  • Host Security and File Handling: secure uploads, data, browser assets and logging in the host application.