saut de page dans un groupe de lignes SSRS

    General discussion

  • Bonjour,

    Dans SSRS 2008, j'utilise un groupe de lignes et celui-ci, lors d'un saut de page, est parfoi coupé. Je souhaiterai qu'un groupe de lignes soit insécable et qu'il reste groupé sur une page (sauf s'il est plus grad qu'une page, évidemment). Mais, malgré toutes les possibilités qu'offre SSRS 2008, je ne trouve pas la solution. La seule solution, et qui ne me convient pas, est de faire un saut de ligne après chaque groupe.
    Auriez-vous une piste sur le sujet ?
    Merci d'avance.
    Monday, December 07, 2009 2:01 PM

All replies

  • Bonjour,

    Vous pouvez consulter:

    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.

    Avoiding Blank Pages

    Sometimes, you will see blank pages when you output reports to a physical page format such as PDF or print. Generally, this will happen when the size of the report body exceeds the size of the page.

    To ensure that all the contents fit on a single page, the body width plus the margins should be less than the defined page width. A textbox or other report item can cause the width of the body to exceed the page width, even when the portion of the item that exceeds the width has no visible contents. In addition, report items growing horizontally (matrix data regions and images set to automatically Autosize or Fit) can also cause the body to grow.


    Roxana Panait, MSFT
    Wednesday, December 09, 2009 8:43 AM