TX Text Control .NET for WPF

What's New in TX Text Control .NET for WPF 24.0

Topic

Six predefined ribbon tabs arrived in TX Text Control .NET for WPF with version 24.0, among them tabs for frames, tables, the page layout, proofing, the view and reporting. MailMerge learned to merge JSON data, and the version added user-defined document properties, colored paragraphs, new zoom options and exception classes that tell what went wrong.

Version 24.0 was released on November 30, 2016, as TX Text Control X14, together with TX Text Control .NET Server, TX Text Control .NET for Windows Forms and TX Text Control ActiveX. Its last full installer, that of Service Pack 2, is dated June 13, 2017. The features below are the ones added since version 23.0.

Version 24.0 at a Glance

AreaWhat is new
RibbonTabs for frame layout, table layout, page layout, proofing, the view and reporting
Mail mergeJSON data, the template location in merge events, DataSourceManager, merge block dialog boxes
DocumentsUser-defined document properties, colored paragraphs, text fields by type, paper sizes
ViewingZooming to the whole page, the page width or the text width
ErrorsTextEditorException, FilterException and LicenseLevelException
PDFImport of encrypted PDF documents

Ribbon Tabs

Besides RibbonFormattingTab and RibbonInsertTab, TX Text Control offers these predefined ribbon tabs:

Ribbon tabWhat it doesConnected through
RibbonFrameLayoutTabChanges the attributes of images, text frames, barcodes and drawingsTextControl.RibbonFrameLayoutTab
RibbonTableLayoutTabHandles the layout and the attributes of a tableTextControl.RibbonTableLayoutTab
RibbonPageLayoutTabSets page attributes such as margins, page size, columns and document framesTextControl.RibbonPageLayoutTab
RibbonProofingTabChecks spelling and hyphenationTextControl.RibbonProofingTab
RibbonViewTabChanges the view of the documentTextControl.RibbonViewTab
RibbonReportingTabIntegrates mail merge and reportingTextControl.RibbonReportingTab

All tabs derive from System.Windows.Controls.Ribbon.RibbonTab and are hosted in a System.Windows.Controls.Ribbon.Ribbon. See Ribbon.

Mail Merge

MailMerge creates documents from a template and data.

See Reporting Ribbon and WPF Dialog Boxes.

Documents

Frames and Dialog Boxes

Zooming

TextControl.Zoom takes a ZoomOption that calculates the zoom factor so that the whole page (WholePage), the width of a page (PageWidth) or the text of a line (TextWidth) becomes visible. The StatusBar received two buttons for these options. See Viewing, Zooming, and Navigation.

Error Handling

New exception classes tell what went wrong:

  • A TextEditorException is thrown when an error occurs while text is edited.
  • A FilterException is thrown when a text filter fails to convert a document to or from another format. Reason gives the cause.
  • A LicenseLevelException is thrown when a feature isn't part of the licensed product level.
  • A wrong parameter or property value throws an ArgumentException, an ArgumentNullException or an ArgumentOutOfRangeException, and a call that is invalid in the object's current state throws an InvalidOperationException.

See Exceptions and Error Handling.

PDF Import

Encrypted PDF documents can be loaded. The password to open the document is set with LoadSaveSettingsBase.UserPassword. See Passwords and Access Permissions.

Upgrade to Version 24.0

  • Update notes. DrawingFrame.Refresh received an overload that refreshes part of a drawing. MailMerge.MergeObjects also merges collections of System.Collections.Generic.Dictionary objects with string keys. CursorKind has the new values DragDropCopy, DragDropMove and No for the cursors of drag and drop.
  • Drawings. Drawing.ViewChangedEventArgs, also new, provides the data of the ViewChanged event of a drawing control.
  • Breaking changes. No change of version 24.0 is known to break WPF code. The changed handler type of View.Changed that the What's New documentation of this version names concerns the server-side view classes of the Document Editor, which TX Text Control .NET for WPF doesn't include. Breaking Changes starts with version 30.0.

New Classes, Properties, Methods and Events

These are the classes and members that the What's New documentation of version 24.0 lists for TX Text Control .NET for WPF, without the ASP.NET classes that the list also names. Names are relative to the TXTextControl namespace. Each name links to its current reference page.

New Classes

.NET Members by Class

ClassPropertiesMethodsEvents
DocumentServer.DataSources.DataColumnInfoCaption, ColumnName, DataTableInfo, DataType
DocumentServer.DataSources.DataColumnInfoCollectionCount, IsReadOnly, ItemCopyTo, GetEnumerator
DocumentServer.DataSources.DataRelationInfoChildColumnName, ChildTableName, ParentColumnName, ParentTableName, RelationName
DocumentServer.DataSources.DataRelationInfoCollectionCount, IsReadOnly, ItemCopyTo, GetEnumerator
DocumentServer.DataSources.DataSourceManagerConnectionString, DataProviderName, DataRelations, DataTables, IsMergingPossible, MasterDataTableInfo, PossibleMergeBlockTables, PossibleMergeFieldColumnsInsertMergeBlock, IsMergeBlock, LoadAssembly, LoadDataSet, LoadDataSourceConfig, LoadDataTable, LoadJson, LoadObjects, LoadSingleObject, LoadXmlFile, LoadXmlString, Merge, SaveDataSourceConfigConnectionStringChanged, DataProviderNameChanged, DataRelationsChanged, DataTablesChanged, IsMergingPossibleChanged, MasterDataTableInfoChanged, PossibleMergeBlockTablesChanged, PossibleMergeFieldColumnsChanged
DocumentServer.DataSources.DataTableInfoChildRelations, ChildTables, Columns, TableName
DocumentServer.DataSources.DataTableInfoCollectionCount, IsReadOnly, ItemCopyTo, GetEnumerator
DocumentServer.DataSources.MergeBlockInfoChildBlocks, ColumnNames, TableName
DocumentServer.DataSources.MergeBlockSettingsBlockTemplateType, CreateHeaderRow, FieldDisplayMode, HighlightColor
DocumentServer.MailMergeMergeBlockNamePrefixMergeJsonData
DocumentServer.MailMerge.DataRowMergedEventArgsDataRow
DocumentServer.MailMerge.FieldMergedEventArgsDataRow, MergeBlockName, NestingDepth, TableCell
DocumentServer.MailMerge.ImageFieldMergedEventArgsMergeBlockName, NestingDepth, TableCell
DocumentServer.MailMerge.ImageMergedEventArgsDataRow, MergeBlockName, NestingDepth
DocumentServer.WPF.InsertMergeBlockDialogAddTableHeaderRow, BlockType, HighlightColor, MergeBlockInfo
Drawing.ViewChangedEventArgsClipRectangle
FilterExceptionReason
FormattingStyleBaseStyle
FrameEventArgsFrame
HeaderFooterGetTextFields
IFormattedTextGetTextFields
InputFormatBottomAligned, FrameFillColor, FrameLineColor, FrameLineWidth, TopAligned, VerticallyCentered
LoadSaveSettingsBaseReportingMergeBlockFormat
LoadSettingsDocumentAccessPermissions, LoadDocumentBackColor, UserDefinedDocumentProperties
PageNumberFieldCollectionGetItem
PaperSizeHeight, Name, Width
ParagraphFormatAbsoluteLineSpacing, Alignment, BackColor, BottomDistance, Frame, FrameDistance, FrameLineColor, FrameLineWidth, FrameStyle, HangingIndent, LeftIndent, LineSpacing, RightIndent, TabPositions, TabTypes, TopDistance
SaveSettingsSaveDocumentBackColor, UserDefinedDocumentProperties
SelectionRemoveInlineStyles
ServerTextControlGetSupportedPaperSizes, GetTextFields, OnDocumentLoadedDocumentLoaded
TextFrameGetTextFields
UserDefinedPropertyDictionaryItem, Names, ValuesAdd, Contains, Remove
WPF.RibbonReportingTabDataSourceManager
WPF.TextControlRibbonFrameLayoutTab, RibbonPageLayoutTab, RibbonProofingTab, RibbonReportingTab, RibbonTableLayoutTab, RibbonViewTabFrameFillColorDialog, FrameLineColorDialog, GetSupportedFonts, GetSupportedPaperSizes, GetTextFields, OnDocumentLoaded, OnFrameClicked, OnFrameDeselected, OnFrameDoubleClicked, OnFrameLayoutChanged, OnFrameMoved, OnFrameRightClicked, OnFrameSelected, OnFrameSized, OnTextFrameAppearanceChanged, PageColorDialog, ZoomDocumentLoaded, FrameClicked, FrameDeselected, FrameDoubleClicked, FrameLayoutChanged, FrameMoved, FrameRightClicked, FrameSelected, FrameSized, TextFrameAppearanceChanged

Next Steps