?
Solved

SSRS 2005 Text in Body

Posted on 2011-09-16
15
Medium Priority
?
215 Views
Last Modified: 2012-06-21
I have this 2005 SSRS report. If you look at the top of the screen shot you will see prompts for To: From: Attn: and eMail. Those prompts are actually text boxes in the body of the report. When the report is viewed on the screen and there are multiple pages, they appear on every page. However, when you actually print this report they only print on the first page. I have attached the report. Any suggestions as to how to get that text to appeaar on every page are welcome.
SampleRFQ.jpg
Print-RFQs.rdl
0
Comment
Question by:rwheeler23
  • 8
  • 6
15 Comments
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 36553058
Please create a Page Header and put those controls on Page Header.
0
 

Author Comment

by:rwheeler23
ID: 36553837
When I do that it tells me I cannot put data fields in the header.
0
 
LVL 27

Expert Comment

by:planocz
ID: 36557220
You have to have hidden datafields (textboxes) of the data that you want in the header.
Example:
=ReportItems!textbox_To.Value

Place this code in the textbox in your header and the textbox name of the hidden textbox in your body would be something like textbox_To
0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 

Author Comment

by:rwheeler23
ID: 36557451
I did not know you were allowed to do that. I will give this a try on Monday.
0
 
LVL 27

Expert Comment

by:planocz
ID: 36557544
In SSRS 2008 you do not have to. but in 2005 this is a good work around.
0
 

Author Comment

by:rwheeler23
ID: 36561388
OK, I have made this change and the report prints w/o error. However, when the report is viewed on the screen there are 2 pages and the complete heading is on both pages. When I print it to paper there are 4 pages and only the first page has the complete heading. On the screen it lists 10 lines per page  but on paper there is only room for 6 lines per page. Is there any way to force the report to have a fixed number of lines per page ragardless of whether it is on the screen or paper? Why does the complete heading only print on the first page, on all subsequent pages it resevers the space for the additional information but the space is blank.
0
 

Author Comment

by:rwheeler23
ID: 36561580
Here is the updated version of this report.
Print-RFQs.rdl
0
 
LVL 27

Accepted Solution

by:
planocz earned 2000 total points
ID: 36561786
make sure the page width is correct and not over 8" with the margin sizes.

Page Break on 6 Large Records
Make a group call it PageBreak and in the Expression place this....
No need for a sort Var.
Set Visibility Hidden =True for the Bottom group footer
place this in the Group By expression box
=CInt(Ceiling(RowNumber(Nothing)/6))
OR
=CInt(Ceiling(RowNumber("MYGROUPNAME")/6))
0
 
LVL 27

Expert Comment

by:planocz
ID: 36569736
rwheeler23 hows it going with this question?
0
 

Author Comment

by:rwheeler23
ID: 36570168
I have gotten bogged down in other projects. I will get to this later this week and let you know. If you need me to award points just let me know.
0
 

Author Comment

by:rwheeler23
ID: 36587229
=CInt(Ceiling(RowNumber(Nothing)/6))

What does the Nothing global do?
0
 
LVL 27

Expert Comment

by:planocz
ID: 36587450
The nothing is if you do not have a group or you do not want to use a group
0
 

Author Comment

by:rwheeler23
ID: 36587549
I received an error when using Nothing and when  I use this
=CInt(Ceiling(RowNumber("table1_Group1")/6))

the report jsut prints right past the 6th row and does not do a page break.

Could you please review this report? I am stuck with two things:
1) Getting the text that contains the vendor name and context above the table to repeat on every page
2) Getting a page break to occur at every 6th line
I apologize for asking this but notjhing I am trying is gettng me anywhere.
Print-RFQs.rdl
0
 
LVL 27

Expert Comment

by:planocz
ID: 36587974
did you make a new group and call it BreakPage?
Set Visibility Hidden =True for the Bottom group footer
place this in the Group By expression box
=CInt(Ceiling(RowNumber(Nothing)/6))
0
 

Author Comment

by:rwheeler23
ID: 36711749
Yes I did. This all started when I added the PageBreak group. I may just start this report over with this built in from scratch.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

840 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