views:

307

answers:

2

I have a Table in an SSRS report. one of the Table Cells contains the Descriptions of Parts in an order. these descriptions could vary in length and for that reson i have set the "CanGrow" Property to True. when i try to export the report to Excel im expecting that if the text length would exceed the width of the Cell then the height of the cell would grow and the whole text would be shown. Unfortunately the SSRS Excel Generator keeps the height as is and so only the part of the text which fits the width of the cell would be shown.

i would appreciate any help or input to solve this problem. Thanks

A: 

This is how the Report Viewer's Excel renderer works. You cannot change the way it exports the excel file, however, there are other ways to resolve your issue.

  1. Write your own Excel Renderer (not a good idea -- time consuming)
  2. Fix the column widths before exporting
  3. After exporting to Excel, edit the Excel file via COM calls

My suggestion is #2 -- You can load the RDLC file in memory, and do your modifications there, then call the ReportViewer export function for that altered report.

Jon
A: 

If you have elements before your tablix this can stop the growth. I've found that removing all elements before the tablix will restore the desired row-growth/auto-fit behaviour. I have not found a better solution yet.

Graphain