Help for this page

Select Code to Download


  1. or download this
        my %opts = (bg_color => $front_color,
            align => "center",
    ...
    
        #  Add and define a format
        my $format_2 = $workbook->add_format(%opts);
    
  2. or download this
    my $sRGB = $parser->ColorIdxToRGB($format->{Fill}->[2]);
    my $sRGB_2 = $workbook->color_idx_to_rgb($format->{Fill}->[2]);
    
  3. or download this
    my $backgroundcolor = $workbook->set_custom_color($back_color,
                                  $sRGB);
    
  4. or download this
        my %opts = (bg_color => "ffff00",
            align => "center",
    ...
    
        #  Add and define a format
        my $format_2 = $workbook->add_format(%opts);
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
    RGB Yellow: ffff00
    RGB Excel: FFFF00
    RGB int: 34