RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
ActiveReports for .NET 3.0 Support
RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
03-08-2010, 4:08 AM
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.
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
03-08-2010, 9:28 AM
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
Sankalp Sen
GrapeCity- DataDynamics
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
03-08-2010, 10:08 PM
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.
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
03-09-2010, 10:12 AM
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
Sankalp Sen
GrapeCity- DataDynamics