Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / December 2006

Tip: Looking for answers? Try searching our database.

Reportviewer problem!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henrik Nordgren - 27 Dec 2006 23:28 GMT
Hi!

I have found a very strange issue with the reportviewer. The CanGrow
property doesnt seem to work! This one of my tablecells:

<TableCell>
                 <ReportItems>
                   <Textbox Name="textbox13">
                     <rd:DefaultName>textbox13</rd:DefaultName>
                     <ZIndex>1</ZIndex>
                     <Style>
                       <BorderStyle>
                         <Default>Solid</Default>
                       </BorderStyle>
                       <PaddingLeft>2pt</PaddingLeft>
                       <PaddingBottom>2pt</PaddingBottom>
                       <PaddingRight>2pt</PaddingRight>
                       <PaddingTop>2pt</PaddingTop>
                     </Style>
                     <CanGrow>true</CanGrow>
                     <CanShrink>true</CanShrink>
                     <Value>=Fields!tool_unit_code_descr.Value</Value>
                   </Textbox>
                 </ReportItems>
               </TableCell>

When I render the report the column doesnt resize to fit its content, it is
at the exact size as is set in this xml tag;

<TableColumns>
         <TableColumn>
           <Width>3.25cm</Width>
         </TableColumn>

I tried to remove the width tag but then the report refused to render. I
tried settting it to 0cm but then the table didnt show up at all.

What am I doing wrong?? WHy doesnt the columns resize based on its content???

/Henrik
Lev Semenets [MSFT] - 28 Dec 2006 06:22 GMT
CanGrow/CanShrink only affect height.

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.

> Hi!
>
[quoted text clipped - 38 lines]
>
> /Henrik
Henrik Nordgren - 28 Dec 2006 09:44 GMT
Hi!

Thank you for the reply. However, the documentation on this subject is very
fuzzy and this was not made clear. I would suggest that you ppl at Microsoft
make a review of the ReportViiwer documetation at
http://msdn2.microsoft.com/en-us/library/ms251671(VS.80).aspx

Thank you for the answer though!

kind regards
Henrik
Signature

.NET Developer

> CanGrow/CanShrink only affect height.
>
[quoted text clipped - 40 lines]
> >
> > /Henrik
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.