Text in tables cells

Text in tables cells

Forum member · Aug 13, 2009
Hi there, really noddy question i am sure. I have text in a cell which is the concatenation of 2 database fields - Title and content. I would like to display it as <TITLE> carriage return<Content> I would also like to be able to show the title as bold, but the Content as normal text How can i achieve this? Thankoyu

Re: Text in tables cells

Support · Aug 13, 2009
Hello, Yes, you can do this without any problem. You can add any page element to the cell of a table. You can use a FormattedTextArea page element to add formatted text (bold, italic, colors etc). You can also use the new line character (\n) to get a new line in this. Then add the formatted text area to the cell of the table. You can refer to the supported HTML tags by the FormattedTextArea and Adding Page Elements to Cells topic on our help documentation. Thanks, ceTe Software Support Team.

Re: Text in tables cells

Forum member · Aug 13, 2009
hi there and thanks I am still struggling i have Dim MyFormattedTextArea As FormattedTextArea = New FormattedTextArea("<b>" + Data.GetString(1) + "</b></br>" + Data.GetString(2), 0, 0, 125, 500, FontFamily.Helvetica, 9, False) MyRow.Cells.Add(MyFormattedTextArea) my problem is that i need this to grow with the cell it is in rather than be fixed height - how can i do this?

Re: Text in tables cells

Support · Aug 13, 2009
Hello, You can change the height of the FormattedTextArea at any time using he Height property. You can get the required height for the text you have added by using the GetRequiredHeight method of the formatted text area. You can create the formatted text area with a "0" height and set its height to the required height. It will expand according to the text it has and the cell also will expand according to the height of the area. Thanks, ceTe Software Support Team.