You might have heard of the changes for the client versions of TX Text Control .NET for Windows Forms and WPF. Since version X8, the classes ServerTextControl and DocumentServer.MailMerge can be used within client applications without optional Server and run-time licences.

When to Use ServerTextControl?

Generally speaking, the ServerTextControl can be used for all processes in the background where no GUI is required. If you need to prepare a document programmatically before it is displayed to the end-user, you can use an instance of ServerTextControl to create the document.

The programming interface of TXTextControl.TextControl and TXTextControl.ServerTextControl is the same and you can re-use your existing code. Advantages of using ServerTextControl:

  • Better performance
  • Must not be visible on a form
  • No visible update flicker

In order to use the ServerTextControl, you'll need to add a reference to the TXTextControl.Server.dll and an entry in the licenses.licx file:

TXTextControl.ServerTextControl, TXTextControl.Server, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638

The following code shows how to create an instance of ServerTextControl. An using statement is recommended as the object must be disposed explicitly.

using (TXTextControl.ServerTextControl serverTextControl1
       = new TXTextControl.ServerTextControl())

Download the 30-day trial version today and try the other great features of TX Text Control X8.