ActiveReports for .NET 3.0 Support

Started by Srinivasd at 03-08-2010 4:08 AM. Topic has 3 replies.

Print Search Rate
Sort Posts:    
   03-08-2010, 4:08 AM
Srinivasd is not online. Last active: 5/18/2010 10:17:25 PM Srinivasd

Not Ranked
Joined on 10-08-2009
Hyd
Posts 9
RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.

Attachment: BackGroundColorTest.zip
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.

   Report 
   03-08-2010, 9:28 AM
SankalpS is not online. Last active: 1/19/2012 9:03:40 AM SankalpS

Top 10 Posts
Joined on 12-11-2008
Posts 2,414

DDStaff
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
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
   Report 
   03-08-2010, 10:08 PM
Srinivasd is not online. Last active: 5/18/2010 10:17:25 PM Srinivasd

Not Ranked
Joined on 10-08-2009
Hyd
Posts 9
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
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.
   Report 
   03-09-2010, 10:12 AM
SankalpS is not online. Last active: 1/19/2012 9:03:40 AM SankalpS

Top 10 Posts
Joined on 12-11-2008
Posts 2,414

DDStaff
Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.
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
   Report 
GrapeCity » Product Support » ActiveReports f... » Re: RichTextBox is not showing backgroundcolor of tablecell when exported to pdf.

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.