RichTextBox Error with HTML

Posted by: alexander.kainz on 20 February 2023, 9:06 pm EST

    • Post Options:
    • Link

    Posted 20 February 2023, 9:06 pm EST

    If I fill the RichTextBox with the attached HTML, we got an error.

    I use AR 16.3.2

    I think, the cause of the problem is the image.

    Error:

    System.IO.EndOfStreamException: Unable to read beyond the end of the stream.

    at System.IO.BinaryReader.ReadByte()

    at GrapeCity.ActiveReports.Rendering.Image.ImageHelper.ReadLittleEndianInt32(BinaryReader binaryReader)

    at GrapeCity.ActiveReports.Rendering.Image.ImageHelper.DecodePng(BinaryReader binaryReader)

    at GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions(BinaryReader binaryReader)

    at GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions(Stream image)

    at GrapeCity.ActiveReports.Core.Rendering.I..(SizeF )

    at GrapeCity.ActiveReports.Core.Rendering.I..( ,  , IEnumerator )

    at GrapeCity.ActiveReports.Core.Rendering.I..( ,  , IEnumerator )

    at GrapeCity.ActiveReports.Core.Rendering.I..LayoutInline( flow)

    at GrapeCity.ActiveReports.Core.Rendering.I..(SizeF )

    at GrapeCity.ActiveReports.Core.Rendering.I..LayoutBlock( flow)

    at GrapeCity.ActiveReports.Core.Rendering.I..(SizeF )

    at GrapeCity.ActiveReports.Core.Rendering.I..Measure(SizeF maxSize)

    at GrapeCity.ActiveReports.SectionReportModel.RichTextBox.GrapeCity.ActiveReports.Controls.IControlInternal.FlexSize(SizeF& size)

    at GrapeCity.ActiveReports.Internal..ProcessFlexSize(Int32 sectionIndex)

    at GrapeCity.ActiveReports.Internal..FormatSection(Section section)

    at GrapeCity.ActiveReports.Internal..PreProcessSectionPhase3(Section section, SectionType sectType)

    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)

    at Liebherr.Cscc.Lios.PdfGenerator.Reports.Services.ReportService.GetTicket(TicketProp ticketProp) in C:\repos\LiOS\LiOS-Report\Liebherr.Cscc.Lios.PdfGenerator\Liebherr.Cscc.Lios.PdfGenerator.Reports\Services\ReportService.cs:line 42

    error.zip

    Best regards,

    Alexander

  • Posted 21 February 2023, 4:58 pm EST

    Hi Alexander,

    We could observe you have created a support ticket for the same with ticket ID: CAS-38180-Y7C3L2.

    We have shared our resolution to your support ticket. We’ll request you test our shared sample and reach us on the support ticket if you face any issues regarding the same.

    Regards,

    Anand

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels