SSRS won't expand the row height when exported to Excel

前端 未结 5 1744
一生所求
一生所求 2021-01-11 17:43

I have a report I am doing with SSRS 2008 with some rows that have multiple elements inside them. On the preview the row automatically expands to support the extra elements

相关标签:
5条回答
  • 2021-01-11 18:12

    reduce the widths of the rows and it fixed my problem

    0 讨论(0)
  • 2021-01-11 18:14

    Both CanGrow and CanShrink properties should be set to false. There is nothing like CanGrow and CanShrink in Excel. By setting them to false it will display the height as it is. Otherwise it will set the height to a default value.

    This worked for me. Check this Row height not preserved when exporting to Excel thread for more suggestions.

    0 讨论(0)
  • 2021-01-11 18:15

    I remove the header of the report, and all works perfectly.

    I have other reports and I see now that if I remove the textboxes that are included on the sheet when exporting to excel, then the row heights in excel are sized properly.

    0 讨论(0)
  • 2021-01-11 18:18

    Came across this (again) recently and thought I'd share my take...

    Whether Excel correctly renders the height has to do with merged columns. Take note of your column alignments throughout all objects on the page. Any objects not tied to the data table itself (or embedded inside the data table) must be aligned with the columns of the table in question, at least for the cells that need to wrap text. If there is any overlap causing the table columns to be split and the cells of wrapped text to be re-merged, Excel will not recognize the row height by either setting the CanGrow to True or snapping the row to fit within Excel.

    In the original post, the user mentioned rows with multiple elements inside of them. It is possible that those elements caused the column to split for the surrounding subtotals or adjacent groups with wrapped text.

    Setting the CanGrow to False will simply prevent any automatic sizing of the row height by default for both the web view and Excel export, so I don't know if that's the ideal solution to this problem.

    0 讨论(0)
  • 2021-01-11 18:28

    Both CanGrow and CanShrink properties should be set to false This must be done for all cells in the row of the Tablix!! Otherwise the data is not properly exported.

    0 讨论(0)
提交回复
热议问题