TX Text Control .NET Server

What's New in TX Text Control .NET Server 21.0

Topic

With version 21.0, TX Text Control got its first word processor that runs in the browser: the HTML5 Web Editor. The same version made the rendering of a ServerTextControl available on the server through the new ServerVisualization namespace, and it added field adapters for the content controls of MS Word documents.

Version 21.0 was released in September 2014 as TX Text Control X11, together with TX Spell .NET 5.0 and TX Barcode .NET 4.0, as the blog article TX Text Control X11 Released: Cross-browser Template Editing announced. It was the first version sold as TX Text Control .NET Server, with an installer of its own. Its Web Editor is an ASP.NET Web Forms control for the .NET Framework and is legacy technology today; new applications use the Document Editor. Features of the Windows Forms and WPF controls, such as the localizable Find, Replace and Color dialog boxes, aren't listed here.

Version 21.0 at a Glance

AreaWhat is new
HTML5 Web EditorWeb.TextControl, an ASP.NET server control with a WYSIWYG word processor, and the TX Text Control Web Server Windows service
Server visualizationImages of the text, the ruler bars, the status bar and the dialog boxes of a ServerTextControl, and simulated keyboard and mouse input
Content controlsField adapters for the content controls of MS Word
ProofingAutomatic language detection with TX Spell .NET 5.0
Text and tablesSearching for whole words, selecting a table range between two cells
Version informationServerTextControl.GetVersionInfo

HTML5 Web Editor

Web.TextControl is an ASP.NET server control that puts a WYSIWYG word processor into an ASP.NET Web Forms application. It works together with the TX Text Control Web Server, a Windows service on the web server. The service keeps a copy of the document in sync with the browser, so that the text is rendered on every client exactly as on the server. All classes of the editor are in the TXTextControl.Web namespace.

The control of version 21.0 offers these members:

  • Loading and saving. LoadText and LoadTextAsync replace the content of the editor with a document, and SaveText saves it. The asynchronous method returns without waiting until the document is loaded.
  • Data for templates. LoadDataSet, LoadXMLDatabase and their asynchronous versions load the database whose table and field names the mailings ribbon tab offers as menu items.
  • File directories. GetFileDirectory and SetFileDirectory, with their asynchronous versions, get and set the directory where the files of a file type are stored.
  • Layout and state. Dock docks the control in its container or page, and IsReady tells whether all TX Text Control components are loaded in the worker process of the service.

Version 22.0 added clipboard support, drag and drop and a server-side API for selections and text parts.

Server Visualization

The ServerVisualization namespace generates images of what a ServerTextControl would show on screen, and takes simulated user input:

Server Visualization describes the namespace as it is today.

Content Control Adapters

Content controls are the controls that MS Word adds to documents and templates to automate them. The DocumentServer.Fields namespace received an adapter class for each kind, so that you read and change them without editing the parameters of the underlying ApplicationField:

Content Controls shows how to work with them today.

Document Processing

Upgrade to Version 21.0

Version 21.0 has no update notes.

New Classes, Properties, Methods and Events

The classes and members below are the ones that the What's New documentation of version 21.0 lists for TX Text Control .NET Server. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today. The version's own list names the ListItems property of DropDownListContentControl as a property of DateContentControl; it is listed here with the class it belongs to.

New Classes

Members by Class

ClassPropertiesMethodsEvents
DocumentServer.Fields.CheckBoxContentControlChecked
DocumentServer.Fields.ComboBoxContentControlListItems
DocumentServer.Fields.ContentControlFieldAdapterContentDeletable, ContentEditable, Id, Placeholder, Tag, Title, Type
DocumentServer.Fields.DateContentControlCalendar, Date, DateFormat, LanguageID, StoreMappedDataAs
DocumentServer.Fields.DropDownListContentControlListItems
DocumentServer.Fields.PlainTextContentControlText
DocumentServer.Fields.RichTextContentControlText
ServerTextControlIsLanguageDetectionEnabledGetVersionInfo
ServerVisualization.CaretStateEventArgsDirection, Location, Size, Visibility
ServerVisualization.DialogViewGeneratorActivationState, Caption, UserInput, ViewCaretStateChanged, Closed, ShowDialogBox, ShowErrorMessage
ServerVisualization.DocumentSizeChangedEventArgsHeight, Width
ServerVisualization.DrawShapeEventArgsKind, Location, Size
ServerVisualization.MenuItemChecked, Enabled, Image, Items, TextExecute
ServerVisualization.RulerBarViewGeneratorAlignment, BorderStyle, DisplayColors, EnablePageMargins, Location, ScaleUnit, UserInput, ViewCreate, ResetDisplayColors
ServerVisualization.RulerBarViewGenerator.ColorsBackColor, ForeColor, GradientBackColor, RulerColor, SeparatorColorDark, SeparatorColorLightResetBackColor, ResetForeColor, ResetGradientBackColor, ResetRulerColor, ResetSeparatorColorDark, ResetSeparatorColorLight
ServerVisualization.ShowDialogBoxEventArgsDialogBox
ServerVisualization.ShowErrorMessageEventArgsErrorMessage
ServerVisualization.StatusBarViewGeneratorBorderStyle, ColumnText, DisplayColors, Font, LineText, PageCounterText, PageText, SectionCounterText, SectionText, ShowColumn, ShowKeyStates, ShowLanguage, ShowLine, ShowPage, ShowPageCounter, ShowSection, ShowSectionCounter, ShowZoom, ShowZoomTrackBar, UserInput, ViewCreate, ResetDisplayColors
ServerVisualization.StatusBarViewGenerator.ColorsBackColor, BackColorBottom, BackColorMiddle, BackColorTop, ForeColor, FrameColor, GradientBackColor, SeparatorColorDark, SeparatorColorLightResetBackColor, ResetBackColorBottom, ResetBackColorMiddle, ResetBackColorTop, ResetForeColor, ResetFrameColor, ResetGradientBackColor, ResetSeparatorColorDark, ResetSeparatorColorLight
ServerVisualization.TextContextMenuEventArgsContextMenuLocation, Items, Location, RightToLeft
ServerVisualization.TextViewGeneratorActivationState, AllowUndo, CanCopy, CanPaste, CanRedo, CanUndo, ControlChars, DisplayColors, DocumentTargetMarkers, EditMode, InputFormat, Location, RulerBar, StatusBar, TextFrameMarkerLines, UserInput, VerticalRulerBar, ViewGetDialogBox, OnBarcodeDeselected, OnBarcodeSelected, OnCaretStateChanged, OnChanged, OnCharFormatChanged, OnChartDeselected, OnChartSelected, OnDocumentLinkClicked, OnDocumentSizeChanged, OnDrawShape, OnHeaderFooterActivated, OnHeaderFooterDeactivated, OnHypertextLinkClicked, OnImageDeselected, OnImageSelected, OnInputPositionChanged, OnPageFormatChanged, OnParagraphFormatChanged, OnTextContextMenuOpening, OnTextFrameDeselected, OnTextFrameSelected, Redo, UndoBarcodeDeselected, BarcodeSelected, CaretStateChanged, Changed, CharFormatChanged, ChartDeselected, ChartSelected, DocumentLinkClicked, DocumentSizeChanged, DrawShape, HeaderFooterActivated, HeaderFooterDeactivated, HypertextLinkClicked, ImageDeselected, ImageSelected, InputPositionChanged, PageFormatChanged, ParagraphFormatChanged, TextContextMenuOpening, TextFrameDeselected, TextFrameSelected
ServerVisualization.TextViewGenerator.ColorsDarkShadowColor, DesktopColor, HeaderFooterLabelColor, HeaderFooterLineColor, LightShadowColorResetDarkShadowColor, ResetDesktopColor, ResetHeaderFooterLabelColor, ResetHeaderFooterLineColor, ResetLightShadowColor
ServerVisualization.UserInputSendKeyDown, SendKeyPress, SendKeyUp, SendMouseDoubleClick, SendMouseDown, SendMouseMove, SendMouseUp, SendMouseWheel
ServerVisualization.ViewLocation, ScrollPadding, Size, ZoomFactorGetCursorKind, GetImage, OnAutoHScroll, OnAutoVScroll, OnChanged, OnZoomedAutoHScroll, AutoVScroll, Changed, Zoomed
VersionInfoMajor, Minor, ProductLevel, ServicePack
Web.TextControlDock, IsReadyGetFileDirectory, GetFileDirectoryAsync, LoadDataSet, LoadDataSetAsync, LoadText, LoadTextAsync, LoadXMLDatabase, LoadXMLDatabaseAsync, SaveText, SetFileDirectory, SetFileDirectoryAsync

Next Steps