Choose a Package
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 application | Package | Installation |
|---|---|---|
| Plain HTML page without a build step | The browser files | Use the Browser Files |
| JavaScript or TypeScript with npm and a bundler | @txtextcontrol/tx-sheet-control | Install the npm Packages |
| Angular | @txtextcontrol/tx-sheet-control | Install the npm Packages |
| ASP.NET Core with Razor Pages or MVC | TXTextControl.TXSheetControl.AspNetCore | Install the NuGet Packages |
| Blazor Server or Blazor WebAssembly | TXTextControl.TXSheetControl.Blazor | Install the NuGet Packages |
| .NET service or console application | TXTextControl.TXSheetControl.Server | Install the NuGet Packages |
| Node.js service or console application | @txtextcontrol/tx-sheet-control-server | Install 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
| Package | Purpose | Included functionality |
|---|---|---|
| The browser files | Editor for a plain HTML page | The editor script tx-sheet-control.min.js, its style sheet, fonts, language files and notices |
@txtextcontrol/tx-sheet-control | JavaScript, TypeScript and Angular editor | Editor, workbook APIs, dashboards, charts, XLSX, ODS, CSV, XML, JSON and PDF, fonts, data providers and the Angular component |
TXTextControl.TXSheetControl.AspNetCore | Razor Tag Helper and browser assets | The complete browser editor, dashboards, charts, file operations, fonts and the static font catalog |
TXTextControl.TXSheetControl.Blazor | Blazor Server and WebAssembly editor | Razor component, typed C# document APIs and events, browser assets and fonts |
TXTextControl.TXSheetControl.Server | .NET backend processing | Document APIs, calculation, mail merge, dashboards, XLSX, ODS, CSV, XML, JSON, TXWB and PDF, data sources, fonts and the engine |
@txtextcontrol/tx-sheet-control-server | Node.js backend processing | Workbook 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.
| Application | Editor project | Backend project |
|---|---|---|
| Blazor Server, editor only | Blazor in the server app | None |
| Blazor Server, editor and processing | Blazor and Server in the same server app | Same project |
| Standalone WebAssembly, editor only | Blazor in the client | None |
| WebAssembly with backend processing | Blazor in the client | Server 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
- Download TX Sheet Control: get the download, your
nuget.configand your license file. - Requirements: check the browser and platform versions each package needs.
- Getting Started: build a first application with the editor package or a server package.