TX Sheet Control

Choose a Package

Topic

TX Sheet Control comes as three NuGet packages, two npm packages and a folder of browser files. They do not depend on each other: choose the package for the application that owns the editor or the processing, and install only that one. A browser editor does not require a document-processing server, and a server package does not require the editor.

Which Package You Need

Your applicationPackageInstallation
Plain HTML page without a build stepThe browser filesUse the Browser Files
JavaScript or TypeScript with npm and a bundler@txtextcontrol/tx-sheet-controlInstall the npm Packages
Angular@txtextcontrol/tx-sheet-controlInstall the npm Packages
ASP.NET Core with Razor Pages or MVCTXTextControl.TXSheetControl.AspNetCoreInstall the NuGet Packages
Blazor Server or Blazor WebAssemblyTXTextControl.TXSheetControl.BlazorInstall the NuGet Packages
.NET service or console applicationTXTextControl.TXSheetControl.ServerInstall the NuGet Packages
Node.js service or console application@txtextcontrol/tx-sheet-control-serverInstall the npm Packages

An application that both shows the editor and processes documents on the server installs two packages, one for each part, as the Blazor table below shows.

What Each Package Includes

PackagePurposeIncluded functionality
The browser filesEditor for a plain HTML pageThe editor script tx-sheet-control.min.js, its style sheet, fonts, language files and notices
@txtextcontrol/tx-sheet-controlJavaScript, TypeScript and Angular editorEditor, workbook APIs, dashboards, charts, XLSX, ODS, CSV, XML, JSON and PDF, fonts, data providers and the Angular component
TXTextControl.TXSheetControl.AspNetCoreRazor Tag Helper and browser assetsThe complete browser editor, dashboards, charts, file operations, fonts and the static font catalog
TXTextControl.TXSheetControl.BlazorBlazor Server and WebAssembly editorRazor component, typed C# document APIs and events, browser assets and fonts
TXTextControl.TXSheetControl.Server.NET backend processingDocument APIs, calculation, mail merge, dashboards, XLSX, ODS, CSV, XML, JSON, TXWB and PDF, data sources, fonts and the engine
@txtextcontrol/tx-sheet-control-serverNode.js backend processingWorkbook APIs, calculation, dashboards, XLSX, ODS, CSV, XML, JSON, TXWB and PDF, data providers, fonts and rendering

The editor and server packages read and write XLSX and ODS with the same load and save methods: use StreamType.SpreadsheetML for XLSX and StreamType.OpenDocumentSpreadsheet for ODS.

There are no separate packages for file formats, PDF, layout, data access or Angular: they are part of the packages above. You also do not need a font service or a helper package, because each package brings its own fonts.

How the Packages Work Independently

  • Browser files and npm. The browser files and the editor npm package contain the same editor. Use the browser files when your application has no npm build.
  • Angular. Import TXSheetControlComponent from @txtextcontrol/tx-sheet-control/angular. The Angular dependencies are optional for plain JavaScript users.
  • ASP.NET Core. The ASP.NET Core package serves the editor and its fonts from the application itself, without a processing server or font service.
  • .NET Server. The Server package contains its engine and fonts. It needs no Node.js installation and no browser.
  • Node.js. The Node.js package does not require the editor package.
  • Blazor and Server. Both packages contain the same portable C# document API, TXTextControl.TXSheetControl.Api.dll, so workbook code looks the same in both. They do not share workbook state: transfer saved TXWB or XLSX bytes explicitly between the browser editor and a backend control.

Blazor Applications

Use the Blazor package for the editor in both hosting models. Add the Server package only for backend document processing.

ApplicationEditor projectBackend project
Blazor Server, editor onlyBlazor in the server appNone
Blazor Server, editor and processingBlazor and Server in the same server appSame project
Standalone WebAssembly, editor onlyBlazor in the clientNone
WebAssembly with backend processingBlazor in the clientServer in the API or hosting project

Install the NuGet Packages shows the commands. Then start with the Blazor tutorial and read Blazor deployment.

Next Steps