Posted 6 February 2023, 11:09 pm EST
If we fill the RichTextBox with the attached HTML, we got an error.
We use AR 16.3.2
I think, the cause of the problem is: “border-top:solid”
Error:
System.NullReferenceException: Object reference not set to an instance of an object.
at GrapeCity.ActiveReports.Document.Section.Adapter.RdfCanvasAdapter.GrapeCity.ActiveReports.Drawing.IDrawingCanvas.FillRectangle(BrushEx brush, RectangleF rect)
at GrapeCity.ActiveReports.Document.Section.Adapter.RdfCanvasAdapter.GrapeCity.ActiveReports.Drawing.IDrawingCanvas.FillPolygon(BrushEx brush, PointF[] polygon)
at GrapeCity.ActiveReports.Core.Rendering.I..DrawBorder( boxInfo, PointF start, PointF end, IDrawingCanvas canvas, BoxSide boxSide)
at GrapeCity.ActiveReports.Core.Rendering.I..(RectangleF , , IDrawingCanvas )
at GrapeCity.ActiveReports.Core.Rendering.I..ProcessDrawBorders()
at GrapeCity.ActiveReports.Core.Rendering.I..Draw(GraphicsRenderContext context, content)
at GrapeCity.ActiveReports.Core.Rendering.I..Draw(GraphicsRenderContext context, content)
at GrapeCity.ActiveReports.Core.Rendering.I..Draw(GraphicsRenderContext context, content)
at GrapeCity.ActiveReports.SectionReportModel.RichTextBox.GrapeCity.ActiveReports.Controls.IControlInternal.Render(DrawCanvas page, PointF pageOffset, Single startPos, Single endPos)
at GrapeCity.ActiveReports.SectionReportModel.ARControl.Render(Page page, PointF pageOffset, Single startPos, Single endPos, DeviceInfo info, ITextLayoutService textLayout, IImagePersistenceService imageService)
at GrapeCity.ActiveReports.SectionReportModel.Section.Render(Page page, drawingLog, PointF pageOffset, Single pageWidth, Single drawStartPos, Single drawEndPos)
at GrapeCity.ActiveReports.Internal..ReLayout()
at GrapeCity.ActiveReports.Internal..AddSection(Section section, Int32 insPos)
at GrapeCity.ActiveReports.Internal..ProcessSectionPhase3(Section section, Boolean& groupFootersDone, Boolean& readyForFinalChecks)
at GrapeCity.ActiveReports.Internal..ProcessPhase3(Boolean& groupFootersDone, Boolean& readyForFinalChecks)
at GrapeCity.ActiveReports.Internal..ProcessPageTillFull()
at GrapeCity.ActiveReports.Internal..GrapeCity.ActiveReports.Layout.IExecReport.RenderPage(Page newPage, Single left, Single top, Single right, Single bottom, ExecMode flags, ExecStatus& status)
at GrapeCity.ActiveReports.SectionReport.ProcessPage()
at GrapeCity.ActiveReports.SectionReport.RunImpl(Boolean syncDocument)