in reply to Spreadsheet::WriteExcel: How to create a line breaks in a single cell?

I'm pretty sure that should work. Are you sure the row height is large enough to fully display the cell?
See: Excel single cell line breaks and Spreadsheet::WriteExcel Newline character
Summary:
my $wb = Spreadsheet::WriteExcel->new('tmp.xls'); my $format = $wb->add_format(); $format->set_text_wrap() ; my $ws = $wb->add_worksheet(); $ws->write(0, 0, "This is\na multiline cell", $format); $wb->close();
  • Comment on Re: Spreadsheet::WriteExcel: How to create a line breaks in a single cell?
  • Download Code

Replies are listed 'Best First'.
Re^2: Spreadsheet::WriteExcel: How to create a line breaks in a single cell?
by pat_mc (Pilgrim) on Sep 22, 2011 at 17:28 UTC
    Thanks, runrig!

    I did try "\n" before ... now it all works. That solved the problem. Thanks again for responding!