Solved

Dynamic column width using Can Grow/Can Shrink

Posted on 2008-06-24
5
5,506 Views
Last Modified: 2010-04-21
Hello Experts,

I have a table in Reporting Services 2005 that contains potentially 30 columns ... however, they are all set to not show if they contain no data.  In reality, the table generally will show no more than 12 or so columns and can fit easily on a landscaped page.  The report is working fine and the export to Excel is also working fine - but if printing or exporting to PDF, all the blank pages caused by the original width of the table are included.  That is, the table with its full 30 columns is a lot wider than the actual result the user sees, and that width is taken up with blank pages.    At design time, I cannot alter the width of the table because even if I make all the fields small enough and then set them to "Can Grow" - they don't grow and I end up with a squished-looking mess.  Which is frustrating because I would have thought that's the whole point of "Can Grow" and "Can Shrink".

Has anyone got any idea how we can get around this issue?

Thanks in advance,
GHL
0
Comment
Question by:gailhl
  • 3
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
chrismc earned 500 total points
ID: 21858688
Can grow/shrink refers to cell/row height, not width.

In your scenario I would limit the number of columns but make the contents conditional.
So if showing FieldA and FieldB are mutually exclusive but based on a parameter setting you could have;
  =IIf(Parameters!myFormatChoice.Value = "A", Fields!myFieldA.Value, Fields!myFieldB.Value)

You'd have to do similar conditional checks in group totals as well but it will work and you then can layout the screen more realistically.
0
 

Author Comment

by:gailhl
ID: 21872674
Thanks ... unfortunately that won't work for me because it is possible depending on the parameters chosen, that all the columns will be visible.  There are 24 month columns, plus other data - and I just hide the months that have no data.

I'm giving you the points anyway - because I suspect that what I want to do is simply not possible - and you taught me something I didn't know about Can Grow/Shrink!  Thanks!  :-)

0
 

Author Closing Comment

by:gailhl
ID: 31470096
Although my data doesn't lend itself to this solution, it's a really useful idea for future.  Thanks.
0
 
LVL 18

Expert Comment

by:chrismc
ID: 21885857
Thanks for the points.
And I think in your scenario you are stuck.

I had a first look at Reporting Services 2008 last night and apparently Microsoft have paid a lot of attention to pagination issues like this.
It's scheduled for full release in Q3 2008
0
 

Author Comment

by:gailhl
ID: 21897520
I look forward to the release! :-)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server 2000: == Linked Server, With higher version == 16 114
Need help with a query 3 46
Need some help wiht :CAST AS Double 11 44
SSRS troubles 4 20
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now