Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 29, 2012 01:02 PM by b471code3
Feb 22, 2012 06:47 PM|LINK
I am facing problem for setting column width for the table.
All the columns are being alligned automatically. I have one column which contains a lot of description in it , so i am keeping a little bit more width for that column but still i cannot see any difference when running the report throigh reportviewer.
Please do help me on how to fix this.
Feb 22, 2012 07:13 PM|LINK
Set the overall table width and specify widths for the other cells. Then you will know exactly how wide each field will be and there will be no adjusting.
Feb 22, 2012 07:21 PM|LINK
Yes i did that, but it didnt help. Still the columns were adjusting automatically.
Is there any property to set autoadjustment of the columns width to false?
Feb 22, 2012 07:27 PM|LINK
You may need to specify if the text wraps or not as well.
Feb 22, 2012 07:40 PM|LINK
how to set the text wrapping propoert? i cant see that property anywhere.
Feb 22, 2012 07:47 PM|LINK
Do u mean CanGrow propery? I made it as true but still has no effect.
Feb 22, 2012 08:16 PM|LINK
In the visual studio when i am taking the preview of the report it looks fine but when i am calling reportviewer the alignment is getting disturbed.
Here is my report viewer control properties:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Height="625px" Width="100%" ProcessingMode="Remote">
Feb 24, 2012 12:26 PM|LINK
This is just the container that displays the report so any width settings you make here will not set the columns widths on the report. You have to modify the actual SSRS report.
Feb 28, 2012 07:41 PM|LINK
But still i coulnt fix the problem. I have no control over the columns width. They are being aligned automatically.
Feb 29, 2012 01:02 PM|LINK
You need to go to the physical SSRS report you created in VS or on the report server and modify the .rdl Then you need to make sure you modify the report properties to be whatever width/height you want (overall report width/height). Then select the Tablix
the data is in and set it's width/height. Then inside the Tablix, select a cell/textbox and set the width/height and set the CanGrow and CanShrink properties. Just like a normal table or even a column in Excel, if you modify one cell in a row, it will modify
all the rows cells in that column to the same width. So you may have to merge columns as needed.