TransparencyGroup with FormattedTextArea

TransparencyGroup with FormattedTextArea

Forum member · May 8, 2008
I am trying to add a formatted text area page element to a transparency group. However, the transparency does not seem to be applied. Here is the code: Dim fta As New FormattedTextArea(...) Dim tg As New TransparencyGroup(0.5) tg.Add(fta) Is the transparency group option available for formatted text areas? The text shows up a solid black. I want it to be gray without setting an RGB color in the text (i.e., color='#cccccc'). The is a requirement for printing large quantities of documents and I want to use black ink to produce the text, not a mixture of red, green and blue. Thanks, Matt

Re: TransparencyGroup with FormattedTextArea

Support · May 8, 2008
Hello Matt, You can use the FormattedTextArea in a TransparencyGroup without any problem. The transparency will work for the text. We do not see any problem in this. Following is the sample code we have used. Document document = new Document(); Page page = new Page(); TransparencyGroup group = new TransparencyGroup(0.1f); FormattedTextArea area = new FormattedTextArea("ceTe Software", 0, 0, 100, 100, FontFamily.Helvetica, 12, true); group.Add(area); page.Elements.Add(group); document.Pages.Add(page); document.DrawToWeb(); Thanks, ceTe Software Support Team.

Re: TransparencyGroup with FormattedTextArea

Forum member · May 9, 2008
Thanks for the reply. It showed me what I was doing wrong. I was adding the fta to the tg, but then adding the fta to the page instead of adding the tg. -Matt