FormattedTextArea Supporting SPOT Color

FormattedTextArea Supporting SPOT Color

Forum member · Dec 21, 2006
Hi, Is there a way to add a SPOT color to the FormattedTextArea text content with the font tag. RGB: <font color="CMYKCOLOR">my text</font> CMYK: <font color='cmyk(0.1,0.8,0.2,0.5)'>my text</font> SPOT COLOR: ? Thanks Michele

Re: FormattedTextArea Supporting SPOT Color

Support · Dec 21, 2006
Hello Michele, Currently it is not possible to use the SpotSolor in the font tag and most likely we will be adding this feature in the future release. The work around to use the SpotColor in the FormattedTeatArea is by using the FormattedTextAreaStyle object. You will have to create a SpotColor object and use this color as default color for the FormattedTextArea. If you want some text with different color then you can specify that using the cmyk or RGB or CMYK colors in the font tag but you can not change the font to use different spot color. The following sample code shows this. C# Code: ------------ SpotColorInk ink = new SpotColorInk("spotblue",CmykColor.Blue); SpotColor spotColor=new SpotColor(0.7F,ink); FormattedTextAreaStyle style = new FormattedTextAreaStyle(FontFamily.Helvetica,20,true); style.Font.Color = spotColor; string formattedString = "ceTe <font color='cmyk( 0.1, 0.8, 0.2, 0.5 )'>Software</font> Support Team"; FormattedTextArea area = new FormattedTextArea(formattedString,20,20,200,200,style); Thanks, ceTe Software Support Team.

Re: FormattedTextArea Supporting SPOT Color

Forum member · Dec 21, 2006
Thanks for the quick reply.