Login   Register 
Receive news via our XML/RSS feed
Home | Book | Contents | Preview | Articles | Tools | Newsletters | Premium | Ask | About

Home

Book

Contents

Preview

Articles

Tools

Newsletters

Premium

Ask

About

Most Popular Articles
  • Using Secure Sockets Layer (SSL) for SQL Server 2000 Reporting Services
    Creating an SSL Certificate to ensure your confidential reports remain confidential


  •  
    Beta V Corporation
     
     
    SQL Reporting Services - Answers to your questions
     
    Author Thread: How to fix the position of controls, so table expands into whitespace and doesn't push lower control
    lneville

    How to fix the position of controls, so table expands into whitespace and doesn't push lower control
    Posted: Tuesday, November 03, 2009 12:46 PM (GST)
    I am designing an invoice report. There are some controls at the top of the report (company logo, date, invoice number etc), followed by a table listing the items in the invoice, followed by some controls at the bottom (subtotals, returns address etc). The report should always print onto a single page. I want the controls at the bottom to have a fixed position on the page. There is sufficient whitespace between these controls and the table above for the table to expand to list many items. However whenever it expands it pushes the lower controls down. This results in them spilling onto a second page. Is there a way to fix the position of controls and suppress the "gets pushed down when controls above expand" effect?
     

    Comments:  

    Author Thread:
    lneville
    How to fix the position of controls, so table expands into whitespace and doesn't push lower control
    Posted: Tuesday, November 03, 2009 12:47 PM (GST)
    This is SSRS 2005 by the way.
    lneville
    How to fix the position of controls, so table expands into whitespace and doesn't push lower control
    Posted: Thursday, November 05, 2009 11:25 AM (GST)
    Thanks for that. I found a good solution using rectangles here: SQL Server 2005: Report Design Best Practices and Guidelines (http://www.microsoft.com/technet/prodtechnol/sql/2005/rsdesign.mspx) Here's the relevant part (see underlining): Using Rectangles to Keep Objects Together Rectangles in Reporting Services can be used either as graphical elements or as containers of objects. As object containers, they keep objects together on a page and control how object move and push each other. To keep multiple objects together on a page, put the objects within a rectangle. You can then put a page break before or after the rectangle by using the PageBreakAtStart or PageBreakAtEnd properties for the rectangle. Using Rectangles to Control Item Growth and Displacement Items within a rectangle become peers of each other and are governed by the rules of how peer items are positioned on the page as they move or grow. For example: * Items will push or displace each other within the rectangle. * Items will not push or displace items outside the rectangle, because they are not their peers. * If necessary, a rectangle will grow to accommodate the items it contains. You can use this logic to your advantage when dealing with objects that expand. For example: * If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same rectangle. When the table grows, it will push the blank space. * If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space to its right. Now, the matrix is no longer a peer to the other item on the page and will not be able to push it until the matrix can no longer be contained within its rectangle.

     
     
     
     
     
    Home | Book | Contents | Preview | Articles | Tools | Newsletters | Premium | Ask | About