Advise the library rtf ным docx with the correct formatting of overlapping tags



  • The purpose is to allocate (formatize) the text in different ways (emphasis, different colours, etc.) with the correct processing of intersecting gases. The allocation parameters are derived from regular Select speeches (the start-up position, end-out position).

    The problem with the existing libraries is that for the correct result, two overlapping currents (for the libraries I know) need to be divided into three unlocked currents, such as green and underlined - green, green and cross-cutting and underlined. For one-time formatting, for example, a green print and red, already exclude the green allowed within the red tone, since the print cannot be both green and red. The suit becomes even more fluid if the green intersects with the red and crosses with the underlined.

    The following picture shows how the formatting of overlapping strategies for the libraries listed below is lost:

    введите сюда описание изображения

    RichTextBox does the right thing, but it doesn't fit for reasons. https://ru.stackoverflow.com/questions/442784/%D0%94%D0%B8%D0%B0%D0%B3%D0%BD%D0%BE%D1%81%D1%82%D0%B8%D0%BA%D0%B0-gui-richtextbox ♪

    The following incorrectly act on the overlapping lines:

    http://sourceforge.net/projects/netrtfwriter/ although there is Select(start, end).

    http://docx.codeplex.com/ does not support Select-nationalFormat, only via Replace(word)-Format.

    http://www.codeproject.com/Articles/11306/NRTFTree-A-class-library-for-RTF-processing-in-C - Supports only the formatting of the introduction, the ready text cannot be deleted.

    https://msdn.microsoft.com/ru-ru/library/vstudio/system.windows.documents.textrange(v=vs.100).aspx - incorrectly works Select(start, end) because it takes into account some of its internal currents and distinguishes not what is needed.



  • NPOI. Got to work. It's just awesome and doesn't need an installed Office bag. Read the doc!

    https://npoi.codeplex.com/


    https://www.nuget.org/packages/NPOI/




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2