Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

I need help creating dynamic headers

$
0
0

I am attempting to populate header information (Image- Company Logo, Company address information) from a dataset created in the stored procedure. Based on the value in the dataset, I'm performing a lookup into a table that stores the image. This works correctly.

The problem arises in the report design itself. The report was originally writtne in Crystal, and my task is to re-write it using Reporting Services 2008R2 to match the layout. The data populates accurately, but the tablix that is built on the dataset is not used onthe first page. (Three smaller subreports show a semi-dashboard functionality on the first page). For that reason, I've been unable to use the ReportItems  collection to determine which logo to use. I've tried embedding the tablix inside a list with a textbox holding the value for the logo lookup, however then the logo doesn't appear on subsequent pages.

I've tried using subreports for all of the tables inside the report, but the data for the header information is only in the main table. My latest attempt involves re-writing the stored procedures to be all inclusive, creating the "subreport" data in the header of the main tablix. Regardless of how I've tried, I still have the same issue. The logo and Company address information appears blank unless the detail rows that include this information is on the same physical page as the header.

I need the image and address information to be dynamic, so I can't use a parameter as the value won't change when the group changes. I'm also haveing difficulty getting the necessary page breaks between rows of the tablix within the same grouping.

Any advice and suggestions will be appreciated. Thanks!


Viewing all articles
Browse latest Browse all 20764

Trending Articles