TX Text Control .NET Server

GitHub Examples

Topic

Complete projects that you clone, build and change are the next step after the online demos. Text Control publishes its sample applications on GitHub, in the organization TextControl: the official sample collections and the projects behind the articles of the Text Control Blog. Most samples are small ASP.NET Core or console applications that show one task, and a few are complete applications. Knowing how the samples reference TX Text Control saves time when you run one for the first time.

What the Organization Contains

  • The official sample collections. TXSamples.NET is the index of the .NET samples that Text Control also installs with the setup. For TX Text Control .NET Server, it links TXSamples_ASP.NET_CSharp, which contains a Document Editor, a Mail Merge and a Document Viewer application.
  • Blog samples. Articles of the Text Control Blog that come with a sample end with a box titled "Download and Fork This Sample on GitHub", which links the repository and names the requirements, such as the TX Text Control version and Visual Studio. The names of newer repositories start with TXTextControl., those of older ones often with TextControl..
  • Complete applications. Some repositories are applications rather than samples, such as the e-signature platform SignFabric.
  • Other products. The organization also contains samples for TX Text Control .NET for Windows Forms and WPF, TX Spell .NET, DS Server and ReportingCloud. The examples pages of this section list only samples for TX Text Control .NET Server.

Samples Installed With the Setup

The Windows setup of TX Text Control .NET Server installs a set of basic tutorial applications on the development machine. Their default location is %USERPROFILE%\Documents\TX Text Control 34.0.NET Server for ASP.NET\Samples\ASP.NET, with one folder per platform below CSharp:

PlatformFolder
ASP.NET CoreCSharp\ASP.NET Core
ASP.NET MVC on the .NET FrameworkCSharp\ASP.NET MVC
ASP.NET Web Forms on the .NET FrameworkCSharp\ASP.NET Web Forms

To find them, open the folder in File Explorer, or start the Help Center from the Windows Start menu under TX Text Control 34.0.NET Server for ASP.NET, go to Getting Started > Sample Projects and choose TX Text Control .NET Server for ASP.NET. Open a sample's project in Visual Studio to build and run it. The repository TXSamples_ASP.NET_CSharp has the same three folders: a Document Editor, a Document Viewer and a mail merge application for ASP.NET Core and for ASP.NET MVC, and a Document Editor for Web Forms. The samples for the .NET Framework are legacy applications; see .NET Framework in the Integration Guide.

Run a Sample

Most samples reference the TX Text Control NuGet packages by name and version and contain no nuget.config: where the packages come from depends on your own setup. In most repositories the .csproj file is in a folder below the repository root, and that folder is where you restore, build and run. The following commands run the sample of five layouts for the Document Editor:

git clone https://github.com/TextControl/TXTextControl.DocumentEditor.Views.git
cd TXTextControl.DocumentEditor.Views/tx-render-editor
dotnet restore
dotnet run

Before dotnet restore, make the packages available:

  1. Check the project file. The .csproj file names the target framework, such as net10.0, and the version of each TX Text Control package. Install the .NET SDK it needs.
  2. Provide a package source. Licensed developers copy their nuget.config for the Text Control Private NuGet Feed next to the project or solution, as nuget.config describes. Don't commit it to your fork, because it contains your API token. Evaluators install the trial version, whose setup provides the packages as a local source, as Offline Packages describes.
  3. Restore, build and run. In Visual Studio, open the solution and start it; with the .NET CLI, use the commands above.

Update an Older Sample

A sample references the package versions that were current when it was written. Even recent samples refer to earlier service packs than the current release, and older ones to version 33.0 or earlier. Update the packages to the newest versions available to you, as Updating NuGet Packages describes; dotnet list package --outdated lists the packages with newer versions.

Samples of earlier versions need more than new package versions:

Where to Start

These repositories combine several components or introduce the product as a whole:

ExampleWhat it showsWhere
Document Editor layoutsFive ways to place the Document Editor in an ASP.NET Core MVC application: full screen, modal dialog, sidebar, split panel and tabs, as described in 5 Layout Patterns for Integrating the TX Text Control Document Editor in ASP.NET Core C#. .NET 10, version 34.0TXTextControl.DocumentEditor.Views
Document repositoryA file-based document repository with version control and, in the demo, the Document Editor, as described in File Based Document Repository with Version Control in .NET with TX Text Control. Version 34.0TXTextControl.DocumentRepository, TXTextControl.DocumentRepository.Demo
SignFabricA complete e-signature application: documents are prepared in the Document Editor, signed in the Document Viewer and sealed as PDF on the server. .NET 10, version 34.0SignFabric
Mail merge and form fieldsTemplates designed in the Document Editor, form fields filled in the Document Viewer and documents merged with MailMerge in one ASP.NET Core application. Version 33.0TXTextControl.Server.Core.BestPractice
Official ASP.NET samplesThe Document Editor, mail merge and Document Viewer applications of the setup for ASP.NET Core and for ASP.NET MVC on the .NET Framework, and a Document Editor for ASP.NET Web Forms, as described in Official TX Text Control .NET Sample Applications Are Now Hosted on GitHub. Version 33.0TXSamples_ASP.NET_CSharp

The blog article Getting Started with SignFabric: From Clone to Your First Signature Envelope walks through cloning a repository, opening its solution in Visual Studio, restoring the packages and running the application.

Samples by Topic

The other pages of this section list the repositories and online demos of one topic each:

Next Steps