Fill MasterData Band

edited January 2014 in FastReport 4.0
Hi All,

I'm using FR Por for printing an invoice.
In MasterData, connected with a dataset, I show:
Code | Description | Price

After MasterData Band, I have a PageFooter.

If my Dataset has only 3 records (es.), I would like to have my ' | ' fills the entire MasterData Band and not only for the 3 records.
There's a way to have my page filled and not blank?

Thanks,
Flavio

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:23AM
    one way is to add an overlay band and draw your lines in it.
    the second way is to duplicate the memos of the mdband in an unattached child band.
    write code in the obp event of the footer to check the engine.freespace - the footer height divided by the child band height
    then in a loop call engine.showband(childbandname);
  • edited 8:23AM
    Hi Gordk, thanks for you reply.

    I have used some tips to solve my problem but it don't works well.

    So, this is my case:

    structure of my page is:

    PageHeader Band
    MasterData
    PageFooter

    after MasterData I have added a ChildBand not binded whit others band.
    I MasterData.OnAfterPrint I have added this code:
    while engine.freespace > Child1.height do
    begin
    engine.showband(Child1);
    end;

    this works if I have ONLY 1 record in Masterdata.
    If, es., I have 3 record in MasterData, as result, in preview, I have 3 Pages with one record for page.

    Any idea?

    Thanks, Flavio
  • gordkgordk St.Catherines On. Canada.
    edited 8:23AM
    you should do it in the obp event of the footer
    also
    while engine.freespace > Child1.height + pagefooter.height do
  • edited January 2014
    Gordk, thanks, but it don't work...
  • gordkgordk St.Catherines On. Canada.
    edited 8:23AM
    If, es., I have 3 record in MasterData, as result, in preview, I have 3 Pages with one record for page
    this sounds like the tfrx report report component connected to a data set that causes the above to happen.
    rather than the masterdataband being connected to the dataset.
    the pdf file does not help as i cant see connections or events.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.