Home Subreports

Columns inside a subreport

edited March 2005 in Subreports
I have 2 columns inside a subreport. I want it to traverse top to
bottom then left to right. The subreport does that automatically if I
reach the bottom of the page. How do i control the subreport to wrap
around and print to the rightmost column even if I havent reached the
bottom of the page, that way I dont waste the space on the rightmost
column?

Comments

  • edited March 2005
    dan wrote:

    Ive been playing the the subreport and I found out that the key to
    achieve the effect I need is the subreport.StopPosition. Now my
    question is how do I measure the length of the subreport so I can
    determine the right subreport.StopPosition?
  • edited March 2005

    1. Use StopPosition

    2. Use Subreport.PrintBeahvior set to pbFixed and size the subreport control
    to occupy the desired amount of page space.

    3. Set DetailBand.PrintCount to limit the number of rows that are printed
    before the column breaks

    4. Use LeftToRight column traversal

    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2005
    Thanks for your reply. I realized that I can use subreport.stopposition
    for my purpose, but Ive been scanning the documentation about getting
    the height of the subreport after data has been printed. If I can
    somehow programmatically extract the height of the subreport after the
    data has been printed. I can dynamically put it to
    subreport.stopposition and achieve the results I need at the second
    pass. Are there any methods or properties I can access to get the height?

  • edited March 2005

    During the first pass, all pagination for the report is determined.
    Therefore you cannot use the second pass to reposition the breaks.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.