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?
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
procedure Band4OnBeforePrint(Sender: TfrxComponent);
begin
while Copy(<Customers."Company">, 1, 1) = 'K' do
Band4.DataSet.Next;
end;