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 4:19AM
    Alex, can you confirm that this is a bug or did I misread the manual?
  • edited 4:19AM
    When printing multi-column bands, you can't handle its visibility - the band is printed different way.
  • edited 4:19AM
    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

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.