TX Text Control Blog

Windows Forms and WPF: End a list on return when line is empty

Björn Meyer

Blogged by Björn Meyer on August 26, 2016 and tagged with windows forms, wpf, tutorial.


In the last blog entry, we introduced the TextPartCollection to modify content in all text parts of a document. This sample shows a typical scenario using this meta collection as this list type handling should work in all text parts including headers, footers and the main text.

When creating a numbered or bulleted list in TX Text Control, the following paragraph will inherit this formatting and the list will be continued in the next paragraph.

Windows Forms and WPF: End a list on return when line is empty

In some cases, you might want to end the list for example, if the last line is empty:

Windows Forms and WPF: End a list on return when line is empty

The following code is trapping the KeyPress event in order to check for the Enter key. In case, the last line is empty, the list format type is removed:

Using IFormattedText objects to access elements across all TextParts in a document

Björn Meyer

Blogged by Björn Meyer on August 25, 2016 and tagged with windows forms, wpf, tutorial.


In TX Text Control, a document consists of separate text areas such as main text, headers, footers and text frames. Each of these areas have their own collections for contained elements such as lines, images, fields or the Selection object.

In order to manipulate the text in a HeaderFooter object, you would need to access the HeaderFooter.Selection object. To manipulate text in all headers and footers, you would need to loop through all available objects.

To avoid that, we implemented the "meta" collection TextPartCollection. An instance of the TextPartCollection class contains all text parts in a TX Text Control document. Each text part of a document is implemented as an IFormattedText interface. The IFormattedText interface contains properties and methods common to all text parts in a TX Text Control document.

In order to set text to the beginning of each text part in the complete document, the following code can be used:

This method is very handy to access all ApplicationFields in a document:

Updated TXTextControl.Web MVC NuGet package

Björn Meyer

Blogged by Björn Meyer on August 24, 2016 and tagged with reporting, mvc, release.


After Service Pack 1 for TX Text Control X13 has been released, we also updated the TXTextControl.Web MVC NuGet package that is now on version 23.0.304.500.

The new package contains fixes and updates and improvements.

Fixed known issues:

  • TXT-3732

    When EditMode is set to ReadAndSelect, the ribbon bar can be used to change formatting

  • TXT-3748

    Virtual keyboard didn't work in web editor since iOS 9.2

  • TXT-3771

    Cannot insert symbols into TextFrames using the ribbon menu

Changes and improvements:

  • Scrollable Insert Merge Field drop-down menu

  • Removing window.onbeforeunload handler (on Windows with touch option, a dialog popped up when a page has been closed)

  • AngularJS compatibility: Removed href attribute from all anchor tags

  • Changing MVC image URL correction to avoid all 404 errors in the JS console

  • Suppressing exceptions, if editor is removed from the DOM

Make sure that you update the NuGet package in your Visual Studio project and read more about the updated package here:

https://www.nuget.org/packages/TXTextControl.Web/23.0.304.500

Impressions from That Conference 2016

Björn Meyer

Blogged by Björn Meyer on August 12, 2016 and tagged with reportingcloud, conference.


We had a blast at That Conference 2016 in Wisconsin Dells, WI this week. With more than 1600 attendees, it is one of the largest developer conferences in the United States.

We presented our word processing and reporting tools for .NET and our new ReportingCloud Web API. It was a lot of fun talking to so many developers in such a great atmosphere.

Thanks to all attendees for stopping by our booth. Find below some impressions from the conference:

Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016Text Control at That Conference 2016

See you next year!

Service Pack 1 for TX Text Control X13 released

Björn Meyer

Blogged by Björn Meyer on August 9, 2016 and tagged with service pack, release.


Service Pack 1 for TX Text Control X13 released

We are very happy to announce the immediate availability of new Service Packs for the following Text Control products:

TX Text Control X13

  • Service Pack 1 for TX Text Control .NET Server for ASP.NET X13
  • Service Pack 1 for TX Text Control .NET for Windows Forms X13
  • Service Pack 1 for TX Text Control .NET for WPF X13
  • Service Pack 1 for TX Text Control ActiveX X13

Once you have taken a look at the fixed known issues, please download the service pack.

The support department is waiting to assist you in all matters related to the products of Text Control.

Older blog entries

 
 
Call us: +1 704-544-7445 (United States)
 
 

Products

Support

Downloads

Corporate

Buy Now

About Text Control

Founded in 1991, Text Control is an award-winning Visual Studio Industry Partner and leading vendor of word processing and reporting components for Microsoft development technologies. The products help thousands of developers add comprehensive word processing functionality to their applications. Text Control is 100% self-owned and independent of all investor decisions. Customers benefit from these years of experience, large user-base, and at the same time, appreciate developing with a mature, reliable product.

SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100Visual Studio 2015 Launch PartnerVisual Studio 2013 Launch PartnerVisual Studio 2012 Launch PartnerVisual Studio Partner