Multi columnband has some empty labels

I have a multicolumnband with TCharts on it. It is linked to a datasource. Printing goes as expected but: some records may not be printed therefore I have folowing code in the bandOnBeforePrint;

procedure MasterData4OnBeforePrint(Sender: TfrxComponent);
begin
Masterdata4.Visible := Not dbxRegionTotals.eof;
end;

Result is empty labels where the condition is true. What it should do is not advance a label on this condition. If I build the report based on Page Columns, this goes as expected.

What must I do to prevent the multicolumnband to print empty labels?

Comments

  • edited 11:06PM
    Alex, can you confirm that this is a bug or did I misread the manual?
  • edited 11:06PM
    When printing multi-column bands, you can't handle its visibility - the band is printed different way.
  • edited 11:06PM
    Ok, but is there an alternative? There is no OnBeforeColumnEvent. What I do now is filter / query setting. But it is often hard to get the things you normally would write in an onbeforedetailprint in a filter. So how could I suppress emptylabels in Fastrep-code?
  • edited January 2005
    You can skip records this way:

    procedure Band4OnBeforePrint(Sender: TfrxComponent);
    begin
    while Copy(<Customers."Company">, 1, 1) = 'K' do
    Band4.DataSet.Next;
    end;

Leave a Comment