TX Sheet Control

Common Issues

Topic

When a TX Sheet Control application fails, start with the stage that failed: package restore, page asset loading, editor initialization, document import, calculation or export. Record the actual error and the warnings before you change any configuration. The sections below start from the problems met most often and list what to check for each. Errors of the download, the package restore and the package installation are listed in Installation Problems.

Narrow Down the Problem

Work systematically:

  1. Reproduce the problem with the application of Getting Started and one small document.
  2. Inspect the failures in the browser console and in the network requests, or the backend logs of your application.
  3. Compare the normal build output with the publish output.
  4. Restore the intended package version from the Text Control Private NuGet Feed or the archive of the download, not from an older cached build.

The Editor Is Blank or Has No Size

The editor needs a visible host element with a nonzero width and height. When it stays blank or takes up no space, check:

  • The dimensions of the host element and of its parent.
  • The container, which must be visible.
  • The stylesheet, which must be loaded.

The Editor Displays a Licensing Error

A missing or invalid signed license displays an alert inside the editor host and one console error containing a safe licensing code. For LicenseMissing, set JavaScript/TypeScript license, Angular options.license, or Razor TXSheetControlOptions.License to the contents of your license file, tx-sheet-control.license. A serial number is not a license. The error codes say what to do for every other code.

Correct the configuration and initialize a new editor on the same host, or recreate the Angular component. The previous diagnostic is removed on retry. Existing constructor exceptions, ready rejections and integration error events remain available to your error handlers. Do not log tokens or the application's configuration object. See Licensing.

Styles or Icons Are Missing

The editor shows up without its styles or icons. Check that the stylesheet and asset paths are correct for the deployed application, and that the asset folder was copied completely, not in part.

The Razor Control Remains a Custom HTML Tag

In an ASP.NET Core application, the <tx-sheet-control> element of a Razor page remains a custom HTML tag instead of becoming an editor. Check the Tag Helper registration and that Razor renders the page. ASP.NET Core shows the registration, the @addTagHelper line for TXTextControl.TXSheetControl.AspNetCore in Pages/_ViewImports.cshtml.

Initialization Fails

The editor reports an error while it initializes. Check:

  • The ready and error handlers. In JavaScript, ready rejects on failure, so await it and handle the rejection. In Razor, subscribe to the txsheetcontrolerror event.
  • The font and catalog requests. Fonts and Layout lists what to inspect.
  • An explicit license. A license you set must be valid: an invalid explicit license fails instead of falling back to Evaluation.

A Formula Returns an Error

A cell shows a formula error instead of a result. Check:

An Old Handle Fails After Loading

Code that keeps a worksheet or object handle fails after a document is loaded. Loading replaces the document and invalidates the old handles, because a handle identifies an object in a particular document, not merely an address string. Reacquire the worksheet and object handles after the document is replaced.

A Dashboard Is Empty

Check the registered source fields, the filters, the active dashboard and the query results. Dashboards goes through each of these checks.

It Works Locally but Fails After Publishing

The application runs on your computer and fails once it is published. Check that the publish output holds the complete resources and static assets, and that the font paths are correct for the deployed application.

The Output Has Unexpected Pages

An export has pages you don't expect. Check:

  • The print area, and drawings outside it.
  • The margins and the scaling.
  • The fonts: font substitution affects wrapping and page counts.

An oversized print area or an object outside the intended region can produce a blank-looking extra page. Page Layout and Print Settings shows how to set these.

Confirm the Fix

Check known totals and a representative exported document before you declare success.

Warning

Warnings Are Not Noise. Don't suppress import or merge warnings, and don't substitute empty data only to make an error message go away.