Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Group keep together

edited August 2006 in General
Hi,

When creating a new report with a group, this group has 'Start new page'
default turned off according to the groups dialog. When printing this report
it turns out that 'Start new page' is turned on because every group starts
on a new page. When manualy turning 'Start new page' on and off it works.
Looking at the rtm files it seems the property KeepTogether = True for the
group is not stored the first time.

Using RB10.04 Ent, D7

Regards,
Jeroen Rottink

Comments

  • edited August 2006
    Hi Jeroen,

    As a test I created a simple report with a single group (KeepTogether =
    True, NewPage = False by default) and it seemed to print correctly and
    looking at the template source, the KeepTogether = True was saved down
    properly.

    Please give me the exact steps you are taking to recreate this issue.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2006
    Hi Nico,

    I created a new report. Then went to 'Groups' and added a group. Only adding
    a group. No other options are clicked on or changed in any way. When I then
    save the report, the KeepTogether property is not saved to file. This while
    NewPage is false according to the groups dialog. When I reopen the groups
    dialog and change some options and change them back the property
    KeepTogether is, like you described, saved correctly.

    Regards,
    Jeroen R?ttink

  • edited August 2006
    BTW I used an EndUser application for this.

  • edited August 2006
    Hi Jeroen,

    This is interesting. I followed your exact steps below using the main
    end-user demo locataed in the \RBuilder\Demos\End-User\Report Explorer\
    directory.

    1. Ran the application.
    2. Created a new report.
    3. Added a dataset to DADE.
    4. Created a group (leaving all defaults).
    5. Saved the report to file in ASCII format.

    Looking at the template code the KeepTogether property is present and set to
    True. Which version of Delphi are you using? Are you able to see this
    behavior using one of our demos?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2006
    Nico,

    I didn't seem to be awake yesterday. Everything is OK.

    What I did yesterday was creating a group. I wanted to continue group two
    where group one ended, so 'Start new page' turned off. When previewing this
    report the second group started on a new page... I went back to the groups
    dialog, turned 'Start new page' on and off and the report was previewing
    fine. The wrong assumption was that it had something to do with the 'Start
    new page' property. It had everything to do with the second group being to
    big to fit on the page... When you select 'Start new page' the 'Keep group
    together' checkbox is turned off automaticly. And I missed this...

    Blame on me shame on me ;-)

    Regards,
    Jeroen R?ttink

This discussion has been closed.