Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Fast-Reports : Can't seem to keep a group together so header on one page an



Permlink Replies: 3 - Last Post: Oct 30, 2017 3:17 PM Last Post By: steven chesser Threads: [ Previous | Next ]
steven chesser

Posts: 399
Registered: 4/13/09
Fast-Reports : Can't seem to keep a group together so header on one page an
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 1:41 PM
Screen shot @ https://i.gyazo.com/ee00cc258cdbfd25bb1ef15c8d02a0c0.png

Using the designer currently to create a new report with v5.6

I have a report with LargeDesignHeight = TRUE

When I go to view or print I am having issues clustering sections to try their best to keep together so things like the header don't get split apart across pages.

The last section is layed out like this. Please ignore the misaligned data and missing data. I just started this section and ran into this problem.

Header < visible >
Group Header < not visible, just needed to group by invoice number >
MasterData < not visible, my data >
Group Footer < visible, shows basically sum of data >
Footer < visible, will eventually be a sum of everything >

In this instance Header is on one page while everything else is on next page. I can't seem to keep it together.

Rest of my sections are

Header
MasterData
Footer

and they to have the same problem.

Edited by: steven chesser on Oct 30, 2017 1:41 PM
Douglas Rudd

Posts: 311
Registered: 5/16/97
Re: Fast-Reports : Can't seem to keep a group together so header on one page an
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 1:56 PM   in response to: steven chesser in response to: steven chesser
In your screen shot I cant see the whole page, so I don't know if there is room for everything you want on the page.
steven chesser

Posts: 399
Registered: 4/13/09
Re: Fast-Reports : Can't seem to keep a group together so header on one page an
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 2:07 PM   in response to: Douglas Rudd in response to: Douglas Rudd
Douglas Rudd wrote:
In your screen shot I cant see the whole page, so I don't know if there is room for everything you want on the page.

This work better?

https://gyazo.com/3b82c6cec9bc1751165594172204cc7f

What would be nice, is once it got to the bottom of the page, if that section don't fit, just scoot on over to the next page.

So in that screen shot the "Net Sales" section on the 1st page is split across two pages.
steven chesser

Posts: 399
Registered: 4/13/09
Re: Fast-Reports : Can't seem to keep a group together so header on one page an
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 2:52 PM   in response to: steven chesser in response to: steven chesser
I found I can do this... which requires me to do this on every header. It "worked" but not 100% sure if this is the best way. I would think it would be something in the report designer by now to enable such a feature?

procedure  HeaderNetSalesOnBeforePrint(Sender: TfrxComponent);
begin
 if Engine.FreeSpace <= HeaderNetSales.Height + MasterDataNetSalesIncludingTax.Height + PageFooter1.Height then
        Engine.NewPage;
end;


Screen shot @ https://gyazo.com/4ca51d0e2b4a2eb051d9e9fd0353ace4

I can see this leading to some cases maybe of wasted space where the MasterData section may span 2 pages because of so much data. So would move to another page in this case, while wasting a bunch on the previous?

Edited by: steven chesser on Oct 30, 2017 3:04 PM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02