Header & Footer render exception

Hi,

I'm using syncfusion 19.3.0.46, the following exception is thrown when a document with header and footer is loaded.

System.NullReferenceException: Object reference not set to an instance of an object.

   at Syncfusion.Windows.Controls.RichTextBoxAdv.TextElementBox.Render(PageAdv page, Double left, Double top, Double underlineY, Double rowBottom)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.LineWidget.<>c__DisplayClassd.<Render>b__c()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.UIDispatcher.Execute(Action action)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.LineWidget.Render(PageAdv page, Double left, Double top, Double rowBottom)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.ParagraphWidget.Render(PageAdv page, Double rowBottom)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.TableCellWidget.Render(PageAdv page, Double rowBottom)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.TableWidget.<>c__DisplayClass11.<Render>b__e()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.UIDispatcher.Execute(Action action)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.TableWidget.Render(PageAdv page, Double rowBottom)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.BodyWidget.Render(PageAdv page)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.HeaderFooter.LayoutItems(PageLayoutViewer viewer)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.PageLayoutViewer.LayoutHeaderFooter(SectionAdv section)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.PageLayoutViewer.<>c__DisplayClass1.<CreateNewPage>b__0()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.UIDispatcher.Execute(Action action)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.PageLayoutViewer.CreateNewPage(SectionAdv section)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.ParagraphAdv.MoveToNextPage(LayoutViewer viewer)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.Inline.<>c__DisplayClassc.<LayoutItems>b__8()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.UIDispatcher.Execute(Action action)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.Inline.LayoutItems(LayoutViewer viewer)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.ParagraphAdv.LayoutItems(LayoutViewer viewer)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.SectionAdv.Layout(Int32 blockIndex, Boolean ShiftNextWidget)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.BlockAdvCollection.Layout(Int32 startIndex)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.BlockAdvCollection.<>c__DisplayClass3.<NodeCollection_CollectionChanged>b__1()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.UIDispatcher.Execute(Action action)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.BlockAdvCollection.NodeCollection_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)

   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)

   at System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.BlockAdvCollection.Insert(Int32 index, Node blockAdv)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.DocxImporting.ParseTextBody(WTextBody textBody, BlockAdvCollection blockAdvCollection)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.DocxImporting.ParseDocument(SfRichTextBoxAdv rte, WordDocument doc, Boolean closeWordDocument, Boolean returnDocument)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.Load(WordDocument wordDocument)



3 Replies

KG Kalaivannan Ganesan Syncfusion Team October 28, 2021 06:55 AM UTC

Hi Andrea,

Thanks for contacting Syncfusion support.

We can reproduce the reported issue “Exception is thrown on loading document with a header and footer contents”. We have already logged a defect report in SfRichTextBoxAdv control and the fix will be included in our next essential studio weekly NuGet release which is estimated to be available on 2nd November 2021.

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan 



KG Kalaivannan Ganesan Syncfusion Team November 2, 2021 01:36 PM UTC

Hi Andrea,

Thanks for the Patience.

This is to inform you that our essential studio weekly NuGet is not published today. We will update you with further details on 3rd November 2021.

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



KG Kalaivannan Ganesan Syncfusion Team November 3, 2021 05:46 AM UTC

Hi Andrea,

Thanks for your patience. 

We have included the fix “
Exception is thrown on loading document with a header and footer contents” in our essential studio weekly NuGet release v19.3.0.48 and it has been published on 3rd November 2021.

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan 
  


Loader.
Up arrow icon