Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: starting RTF Writer

by ikkon (Monk)
on Mar 21, 2007 at 19:20 UTC ( #605912=note: print w/ replies, xml ) Need Help??


in reply to starting RTF Writer

not sure if its too late but I build a function to help with the table creation, probably could be better but works for now

my $tableVal2 = [2500,1900,1200, 1400]; my @tableData2 = ( ['this', "bnlut", 'jhsdfhjsa', 'thing'], ["that", "this", 'kjhsadfh', 'ben'], ["me", "none", 'slhdfjhsf', 'prat'], ); &table($tableVal2, @tableData2); ## calls the table function which + uses the array for values sub table(){ my($localVal, @localData) = @_; my $decl = RTF::Writer::TableRowDecl->new('widths' => $localVa +l ); $fh->row($decl, @$_) for @localData; }


Comment on Re: starting RTF Writer
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605912]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-07-04 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls