Not quite what I ment, My apologies, I know how to make a color table, but I am making a actual table in the rtf document, in which I need one cell of that table to be colored, I know its possible but I can't figure out exactly how to do that using rtf code od RTF::Writer, either or.
Ben -----Original Message----- From: Todd Beverly [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 11:16 AM To: Ben Eagle Cc: [email protected] Subject: Re: RTF Tables Ben Eagle wrote: > I am making a rtf file that has multiple tables, which I can easily do, > my problem is I am not sure how to make the cell background color > different than default white, I tried making on in word and seeing if I > could find the RTF code but couldn't find that either. And if it is > possible to round the corners of the table. > > The RTF cookbook: http://search.cpan.org/src/SBURKE/RTF-Writer-1.11/lib/RTF/Cookbook.pod suggests creating a color table: A generally optional but sometimes necessary part of the prolog is a color table. This is a color table: {\colortbl;\red255\green0\blue0;\red0\green0\blue255;} That declares three colors: a 0th entry, with null (default) color (expressed by the zero-length string between "\colortbl" and ";"), then a 1st entry, which is 100% red, and then a 2nd entry, which is 100% blue. (Note that each entry, whether null or \redN\greenN\blueN, must be followed by a semicolon.) A color table is necessary only if you need to change text foreground or background colors -- in that case, you need to refer to entries in the color table. and then using \cfN -- select foreground color #N (from color table) \cbN -- select background color #N (from color table) _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
