Html img tag in table cell in richtextbox.Html property rendering

Posted by: vmardanian on 9 January 2018, 5:13 am EST

    • Post Options:
    • Link

    Posted 9 January 2018, 5:13 am EST

    Hi,

    Title may suggest that this is edge case, but it might happen anytime you use richtextbox to handle html string. in html we have a table and one of the cells has an img tag. in report layout we also have Picture control. when report gets rendered to pdf, somehow img tag from html gets Picture control’s image. if i use html with img tag outside of table, everything works fine. if i put Picture control in layout after richtextbox containing html, that Picture control’s image switched by html’s image src. strange bug. I understand if Picture control image and Html image src are replacing each other, but why it happens only if img is inside the table. i simplified table to one row one cell table.

    .

    I am using ActiveReports 11.

    Regards,

    Vardan.

  • Posted 9 January 2018, 3:15 pm EST

  • Posted 9 January 2018, 3:21 pm EST

    Hello,

    I am unable to reproduce the issue at my end. Please refer the attached report. Also,

    Could you please attach your report file for me to run and reproduce the issue. Can you please specify the exact version of AR that you’re facing the issue with?

    Thanks,

    Mohit

  • Posted 10 January 2018, 10:37 am EST

    Thanks for response mohitg.

    I am using ActiveReport 11 dll’s in visual studio 2015, c#. i cannot sent the whole code, but some snippets are attached. in order to replicate it, you can create simplest .net web project, add report to it, add to report 1 or 2 picture controls and 1 richtextbox with html containing img tag in table/tr/td tag. result is attached as well.

    in test1.pdf (1st image should be cat; 2,3 -dog; 4th-tiger) :

    image from richtextbox (image in table) replaced by top picture control’s image,

    image from 2nd richtexbox(image outside of table) is ok.

    2nd picture control is ok

    in test2.pdf (1st image deleted; 2,3 shoud be dog; 4th - tiger):

    1st picture control removed.

    both richtexboxes’ images are ok.

    2nd picture control’s image been replaced by richtextbox image.

    Thanks again,

    Vardan.

    test1.zip

  • Posted 10 January 2018, 5:35 pm EST

    Hello,

    Thanks for the information.

    I am able to replicate the problem at our end. I have escalated this to the development team(tracking id 252698) and will revert you back once have any information from them.

    Thanks

    Mohit

  • Posted 25 January 2018, 1:51 am EST

    Hello,

    I am glad that your issue has been fixed in the latest hotfix. You can download the same from the following link:

    http://cdn.grapecity.com/ActiveReports/ar11/hotfixes/ActiveReports-v11.2.12300.0.msi

    If issue still exists, feel free to reply.

    Thanks,

    Mohit

  • Posted 26 January 2018, 4:42 am EST

    Thanks a lot.

    I cannot test it now. but will do it next week and will let you know results.

    Thanks again.

    Vardan.

  • Posted 5 February 2018, 5:58 am EST

    Hi Mohit,

    I reinstalled active reports and tested the bug. still see the same issue. in richtextbox html string image within table tag shows wrong image from other parts of report. if i put image tag outside of table it works ok.

    Please advise.

    Thanks

    Vardan.

  • Posted 5 February 2018, 6:00 pm EST

    Hello Vardon,

    It is very helpful for us if you send the report which demonstrates the issue described by you above.

    Sorry for troubling you again.

    Thanks,

    Mohit

  • Posted 6 February 2018, 5:34 am EST

    Mohit,

    it is exactly same bug, as the one i reported in same thread at 10 January 2018, 7:37 pm EST.

    I am using ActiveReport 11 dll’s in visual studio 2015, c#. i cannot sent the whole code, but some snippets are attached. in order to replicate it, you can create simplest .net web project, add report to it, add to report 1 or 2 picture controls and 1 richtextbox with html containing img tag in table/tr/td tag. result is attached as well.

    in test1.pdf (1st image should be cat; 2,3 -dog; 4th-tiger) :

    image from richtextbox (image in table) replaced by top picture control’s image,

    image from 2nd richtexbox(image outside of table) is ok.

    2nd picture control is ok

    in test2.pdf (1st image deleted; 2,3 shoud be dog; 4th - tiger):

    1st picture control removed.

    both richtexboxes’ images are ok.

    2nd picture control’s image been replaced by richtextbox image.

    Thanks,

    Vardan.

    7f398aafabecfb39eec772a3584f39241515626828403.zip

  • Posted 6 February 2018, 7:15 pm EST

    Hello,

    I am unable to reproduce the issue with the “v11.2.12300.0” build. Please refer the attached application.

    Could you please either modify the attached application or provide your own stripped down project so that I can try reproducing the same behaviour at my end and assist you further accordingly?

    Thanks,

    Mohit

    prj_PdfExport.zip

  • Posted 7 February 2018, 10:01 am EST

    Hello Mohit,

    My bad, did not properly update dlls. you are right, it works now.

    Thanks a lot.

    Vardan.

Need extra support?

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

Learn More

Forum Channels