[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Dynamic column width using Can Grow/Can Shrink

Posted on 2008-06-24
5
Medium Priority
?
5,587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
chrismc earned 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
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 …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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