Last post Feb 29, 2012 09:02 AM by b471code3
Feb 22, 2012 02:47 PM|karthik_newbie|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 03:13 PM|b471code3|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 03:21 PM|karthik_newbie|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 03:27 PM|b471code3|LINK
You may need to specify if the text wraps or not as well.
Feb 22, 2012 03:40 PM|karthik_newbie|LINK
how to set the text wrapping propoert? i cant see that property anywhere.
Feb 22, 2012 03:47 PM|karthik_newbie|LINK
Do u mean CanGrow propery? I made it as true but still has no effect.
Feb 22, 2012 04:16 PM|karthik_newbie|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 08:26 AM|b471code3|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 03:41 PM|karthik_newbie|LINK
But still i coulnt fix the problem. I have no control over the columns width. They are being aligned automatically.
Feb 29, 2012 09:02 AM|b471code3|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.