SSRS 2005: Centering a subreport inside a table

I am building a report and have need to include a couple subreports inside cells in the main table.

The main table spans the width of the page and has several columns.  I have selected all cells of a particular row and merged them into a single cell for that row.  Inside that cell I have placed the subreport.

The problem I have is that the subreport aligns to the left and I cannot find a way to force it to align in the center of the report.
LVL 1
LCNWAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Megan BrooksSQL Server ConsultantCommented:
While I don't currently have a copy of SSRS 2005 to experiment with, I tried this with SSRS 2008 and initially I encountered the same thing. Playing around with it, though, I found that it works as I would expect provided that the column containing the subreport in the outer report is no wider than the subreport.

In other words, if you make the outer report column wider than the subreport then the extra space is always going to appear on the right -- it won't center -- but if the column is the same size as or narrower than the subreport then the subreport will fill the column with no extra space on the right.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LCNWAuthor Commented:
Well this sure is a frustrating limitation.  What I ended up doing was merging all columns into a single cell.  The outer report table is 8 inches wide so I made the subreport 8 inches wide and centered the controls in the subreport, which then renders centered in the main report.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.