This is a migrated thread and some comments may be shown as answers.

ExcelML Line Breaks

3 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 09 Mar 2014, 04:41 PM
There are a few old threads up here - one from 2008 or 2009 stating that the RadGrid ExcelML export does not support line break characters.  Is this still the case?

I have a few cells that have line breaks I would like to bring through the ExcelML export - and have tried several approaches, but no luck.

Is this still an unsupported scenario?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Mar 2014, 08:15 AM
Hi Dan,

Please take a look at this forum which discuss the similar requirement.
http://www.telerik.com/forums/radgrid-excel-export-lt-br-gt-to-new-line#VwafLsLn5kiZEQGK8ekjTw

Thanks,
Princy
0
Dan
Top achievements
Rank 1
answered on 12 Mar 2014, 05:32 PM
Hi Princy - thanks for the reply.

I did work through that thread before making my post.  

Unfortunately injecting &#10;, Environment.NewLine, \r\n, etc in place of say a <br /> - does not create the line break in ExcelML.  I added the ExcelMLExportStylesCreated and ExcelMLExportRowCreated events, and created a ss:WrapText = "1" style - and then applied to my columns.  This lets the lines wrap, but examining the data there are not proper line breaks in the cells despite my best efforts.

I saw another post where one of the Telerik Admins claimed line breaks are not supported in ExcelML...  I am thinking this may be correct.

0
Kostadin
Telerik team
answered on 17 Mar 2014, 12:09 PM
Hello Dan,

I prepared a small sample which demonstrates how to add a new line when exporting to Excel. Please give it a try and let me know about the result.

Regards,
Kostadin
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dan
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or