Unexpected ControlWord Token when loading RTF file

Hi GemBox Team,

I have an issue when loading my RTF file that includes some elements in rows:

System.InvalidOperationException : Unexpected 'ControlWord' token: \row.
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0008\u0010\u0005\u0018.\u000e\u0005(Func`1 \u000f, ElementType \u0008)
   at \u0008\u0010\u0005\u0018.\u0005\u0018.\u000e()
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0008\u0010\u0005\u0018.\u0002\u0019\u0018()
   at \u0008\u0010\u0005\u0018.\u0003\u0018.\u0006\u0016()
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0008\u0010\u0005\u0018.\u0006\u0019\u0018(ElementType \u000f, TableFormat \u0008, List`1 \u0006, List`1 \u0002, Boolean& \u0003)
   at \u0008\u0010\u0005\u0018.\u0008\u0019\u0018(Table \u000f, ElementType \u0008, List`1 \u0006, List`1 \u0002, Boolean& \u0003)
   at \u0008\u0010\u0005\u0018.\u0002\u0018.\u0005()
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0008\u0010\u0005\u0018.\u0005\u0016\u0018(ElementType \u000f)
   at \u0008\u0010\u0005\u0018.\u0002\u0002.\u0003()
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0008\u0010\u0005\u0018.\u000e\u0005(Func`1 \u000f, ElementType \u0008)
   at \u0003\u0017\u0016\u0018.\u0005\u0003()
   at \u0008\u0017\u0002\u0018.\u000e\u0016()
   at \u0003\u0017\u0016\u0018.\u0002\u0019()
   at \u0003\u0017\u0016\u0018.\u0008\u0010\u0005\u0018\u001b\u0019\u0003\u0018()
   at GemBox.Document.RtfLoadOptions.7k4lmxmhj5tk8h83eglk6fss34tasuhn\u001b\u0019\u0002(Stream \u000f, String \u0008)
   at GemBox.Document.DocumentModel.Load(String path, LoadOptions options)
   at GemBox.Document.DocumentModel.Load(String path)

The issue seems to have occurred in a previous version of GemBox, but was then fixed: Error while trying to convert DOC/RTF.
I am using version 35.0.200.1870 of GemBox.Document.
I uploaded a small document for reproduction here: Unique Download Link | WeTransfer

Could you have a look at it?

Kind regards,
Sarah

Hi Sarah,

Please try again with this NuGet package:

Install-Package GemBox.Document -Version 35.0.1873-hotfix

Note that this is a hidden pre-released version, to install it you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Regards,
Mario

1 Like

Hi Mario,

it works - thank you!