Revision history for Perl distribution Excel::Template
+
+ Behavior of merge_range adjusted, now it works:
+ <merge_range> Content </ merge_range>. (As described in the POD)
Merge range formatting tends to collide with non-merged formatting,
thanks to Nigel Metheringham.
Fixed some documentation errors, thanks to Robert James Clay.
BEGIN {
use vars qw(@ISA);
- @ISA = qw(Excel::Template::Element);
+ @ISA = qw(Excel::Template::Element::Cell);
- use Excel::Template::Element;
+ use Excel::Template::Element::Cell;
use Excel::Template::Element::Range;
}
$context->active_worksheet->merge_range(
$range,
- $context->get($self, 'TEXT'),
+ $self->_get_text($context),
$format,
);
<cell ref="foo"/>
<cell ref="foo"/>
- <cell ref="foo"/>
+ <cell ref="foo"/>
<merge_range ref="foo">Text to insert into merged range</merge_range>
+Or a cross rows:
+
+ <row>
+ <cell ref="foo"/>
+ <cell ref="foo"/>
+ <cell ref="foo"/>
+ </row>
+ <row>
+ <cell ref="foo"/>
+ <cell ref="foo"/>
+ <cell ref="foo"/>
+ <format>
+ <merge_range ref="foo">Text to insert into merged range</merge_range>
+ </format>
+ </row>
+
+
=head1 AUTHOR
Stevan Little (stevan.little@iinteractive.com)
Spreadsheet::WriteExcel::Worksheet::write( '0', '1', '', '1' )
Spreadsheet::WriteExcel::add_format( '' )
Spreadsheet::WriteExcel::Worksheet::merge_range( 'A1:B1', 'This is the Foo Range', '2' )
+Spreadsheet::WriteExcel::add_worksheet( '' )
+Spreadsheet::WriteExcel::Worksheet::new( '' )
+Spreadsheet::WriteExcel::Worksheet::write( '0', '0', '', '1' )
+Spreadsheet::WriteExcel::Worksheet::write( '0', '1', '', '1' )
+Spreadsheet::WriteExcel::Worksheet::merge_range( 'A1:B1', 'This is the Foo Range2', '2' )
Spreadsheet::WriteExcel::close( '' )
__END_EXPECTED__
<workbook>
<worksheet>
<cell ref="foo" />
- <cell ref="foo" />
- <format is_merged="1">
+ <cell ref="foo" />
+ <format is_merged="1">
<merge_range ref="foo" text="This is the Foo Range" />
</format>
</worksheet>
+ <worksheet>
+ <cell ref="foo2" />
+ <cell ref="foo2" />
+ <merge_range ref="foo2">This is the Foo Range2</merge_range>
+ </worksheet>
</workbook>