Rgoal


I created a report using SQL Report Server project. I was able to retrieve my data without any problem. I am having a hard time to format the data correctly: when somebody access the report he will have the option to export it to PDF file

Here is how I would like to format the PDF File:

Test (title)

Department : A Mike Jebson

St Address State City

14111 NC Test

12541 NC Test2

Page 1

For the second user I will have all the above template to be Repeated again

------------------------------------------------------------------------------------------------------------

Test (title)

Department : B George Jebson

St Address State City

14111 NC Test

12541 NC Test2

Page 2

I could not make it to copy the title in the second page. This is what I have so far

------------------------------------------------------------------------------------------------------------

Test

Mike Jebson

St Address State City

14111 NC Test

12541 NC Test2

Department : A George Jebson

14111 NC Test

12541 NC Test2

Department : B Steve J

14111 NC Test

12541 NC Test2

I want the whole template to be repeated for each user. I do group by name but still I canĄŻt repeat title and the lines for each page. It will put everything under one title. Is there a design screen for pdf Or i just need to do everything in the layout tab for the report then expor it as a PDF




Re: Problem: Formatting The Sql Report

Hi Its Me


If you are using table to show data in reporting service just select table header and set in property repeaton each page = true.






Re: Problem: Formatting The Sql Report

Adam Tappis - IMGroup

For more complex layout scenarios e.g. mixture of tables, charts, matrices etc. place whatever objects you want to have repeated in a list control and group the list control by the paging field. this works as long as the data is coming from 1 dataset







Re: Problem: Formatting The Sql Report

Rgoal

Thank you Adam, The list control is what i wanted. one more problem. Whenever I

Export my data to a PDF file it adds an empty page. For example

Page 1

Some Data

Page 2

Page 3

Some date

Page 4

Page 5

Some Data

I unchecked both boxes: insert a page break before the list and insert a page break after the list. any idea!

Thank you





Re: Problem: Formatting The Sql Report

Adam Tappis - IMGroup

Your problem is a very common issue related to the size of the document.

Look in the report properties window (accesible from the report menu) and make sure the size of the report body fits within the margins of the page






Re: Problem: Formatting The Sql Report

Rgoal

Thank you Adam. I am still not following your suggestion !

In my list control properties -> Edit details group button -> i checked the check box 'page break at end' (i had to do that so each page will have one list displayed) but i still end up with empty pages can you be more specific when you said

"

Look in the report properties window (accesible from the report menu) and make sure the size of the report body fits within the margins of the page

"

I did go to the pdf report menu to access these properties but i did find it

Thank you





Re: Problem: Formatting The Sql Report

Adam Tappis - IMGroup

  • In Visual Studio, make sure you are in the Data or Layout tabs
  • A new menu should appear called Report

  • Select Report->Report Properties to open the report properties window

  • on the layout tab check the dimensions of your report and click OK to close the window
  • Click the report body and check the properties tab

  • make sure the report body fits within the dimesions from the previous step.

I hope that's clear enough.






Re: Problem: Formatting The Sql Report

Adam Tappis - IMGroup

You should also add the height of the report header and footer to the report body i.e. make sure that

Page.Height >= ReportHeader.Height + ReportBody.Height + ReportFooter.Height






Re: Problem: Formatting The Sql Report

Rgoal

Thank you soooo much. It worked, I have to say it was kinda weird because I thought my page was fitting perfectly, but it only worked when I gave it a bigger width size.

Thanks for your help





Re: Problem: Formatting The Sql Report

Adam Tappis - IMGroup

Actually, for completeness I should have mentioned to include the margins and that this applies to both width and height.

So, I believe this should be:

Page.Height >= Page.TopMargin
+ ReportHeader.Height
+ ReportBody.Height
+ ReportFooter.Height
+ Page.BottomMargin

Page.Width >= Page.LeftMargin + ReportBody.Width + Page.RightMargin

That's probably why it had to be grater than in your case.