Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
157
Excel Export Not Wrapping MergedCellRegions
posted
I am attempting to get the following combination of features to work with the Infragistics.Excel component of the ASP.NET suite:
 
I need to be able to "wrap text" in a cell that has been spanned.
 
I have been able to get text to wrap in a single cell.  I have also been able to get cell spanning to work by using the MergedCellsRegions.Add() method.
 
While both features alone are very nice, it is critical that they work together using only your software.
 
Please let us know what I am missing to get this to work. I have attached an example project showing this issue clearly. If you comment out line 59 of Default.aspx.cs the cells will wrap normally.
ExcelExport.zip
Parents
No Data
Reply
  • 19308
    posted

    My compliments for such a concise demonstration of the problem.  I easily reproduced the behavior, but I'm not sure that the configuration you're looking for is possible in Excel.  here's what I did.. through excel, I typed a value into 2 cells and merged them.  Then I clicked on the wrap button, and nothing happened!  I took a closer look, and the merge function not only merges, but centers the text as well.  I'm guessing this means that merging and wrapping inside of excel don't work together.  The exporter is properly setting both conditions, as indicated by the properties of those cells inside of Excel. 

    If you know of a way to get these two conditions working inside of Excel, we can certainly look at adding this as an enhancement to our exporting engine, but as it stands right now, I don't think this is possible.

    -Tony

Children