RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.

  • Srinivasd 7 years, 5 months ago

    I have a HTML file which has the HTML content (tables,trs,tds) and the table cell (td) tag has style properties which includes background-color.

    I read the HTML file and assign its content to rich text box control, the rich text box is not showing the background-color of the table cell (td) tag when the report is exported to pdf.

    In the attached sample simple I assigned some HTML content (Here I skipped reading from the file) to the rich text box control in the report start event.

    Here also the table cell (td) tag is not showing the background-color of the table cell(td) tag when the report is exported to pdf.

    Find the attached zip file contains the test project for the above said scenario.

  • 107p
    SankalpS107p 7 years, 5 months ago

    Srinivasd,

    The reason why you are not getting the background color is because the “style” attribute for the Table datum (<td>) tag is not supported with the RichText control. I would suggest you to kindly take a look at this link which will provide you with a list of Supported Html Tags in the RichText Control. Please make sure that you only use the tags and their attributes as per the information provided on the link provided.

    Regards,
    Sankalp

  • Srinivasd 7 years, 5 months ago

    Thanks for quick reply,If you have seen my report,there i have some tds which are showing numbers,here i need to fill the back ground color of these tds with diffrent colors based on the numbering.How can i achive this task,by using the existing tags.Please suggest.

  • 107p
    SankalpS107p 7 years, 5 months ago

    Srinivasd,

    Unfortunately since the style attribute for the <td> tag is currently not supported in the RichText control therefore I cannot think of a way this could be accomplished. However I would like to tell you that we do have a feature request Case 22788 already opened to add the ability to set the background color for a table’s cell when using HTML in a RichTextBox control.

    I have added your E-mail address to the list of affected users for this case. You will be notified once this case is implemented in future.

    Regards,
    Sankalp

  • 1p
    wvdbroek1p 1 year, 10 months ago

    Hi guys,

    Is it true that this problem still is not solved? I mean in AR 9.

    Best regards,
    Willem

  • 597p
    Reema597p 1 year, 10 months ago

    Hello Willem,

    I have asked the development team for more information on this (setting the ‘background-color’ in style property for a RichTextBox) and will get back to you as soon as I get any update from their side regarding the same.
    (Posted Case ID : 187973)

    Also, I would suggest you to post your AR9 related queries on the respective forum to maintain Issue tracking :

    http://arhelp.grapecity.com/groups/forum/reporting/activereports-8/

    Regards,
    Reema

  • 597p
    Reema597p 1 year, 10 months ago

    Hello Willem,

    As per the development team, the same has not been implemented yet and as such there are no plans to implement the same in future.

    Please have a look at the following documentation link which lists all the supported tags in AR9 :

    http://arhelp.grapecity.com/webhelp/AR9/index.html#RichTextBox.html

    Regards,
    Reema

  • 1p
    wvdbroek1p 1 year, 10 months ago

    Hello Reema,

    Thank you very much for contacting the development team and sharing the status of this request. Luckely my client accepts this limitation (for now).

    The application I am working on is for generating result lists with diplomas, where the layout is dictated by the Dutch government. We hope it will not be a massive problem that the cells in the header of various tables do not have a gray background.

    Those tables a fairly complicated, so thay cannot be generated in a regular (AR) way. Using HTML seems to be the best way to create them.

    Thanks again, and please leave the request for supporting background color style on the wish list.

    Best regards,
    Willem

  • 597p
    Reema597p 1 year, 10 months ago

    Hello Willem,

    I understand your concern and therefore, I am re-escalating your request to the development team. However, as informed earlier, since there are no plans to implement this feature in future, they might/might not consider this request.

    Regards,
    Reema

  • joeparliament 8 months, 2 weeks ago

    Hello,

    Is there an update on having background colours on table rows/tds?

    Without background colours the control is useless for our requirements…

    Thanks.

  • 195p
    AbdiasM195p 8 months, 2 weeks ago

    Hello,

    Unfortunately, this is still not implemented and doesn’t seem likely in the near future. It’ll be mentioned in the release notes if at all this is implemented in the future.

    Sorry for the inconvenience.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.