Here is the code.
The first item is not selected and so Print is set to False.
The printing machine does not move on from this record.
It is always the first record.
If I change the value to True in the debugger, then the next item is processed.
This is most likely a bug that needs to be fixed.
Is it a bug, and if so, when will it be fixed?
Regards,
Raymond
procedure TMainForm.ItemTreePrinterItemPrinting(Sender: TObject;
Item: TElXTreeItem; var Print: Boolean);
begin
if (PrintMode = amSelected)
and (not Item.Selected) then
begin
Print := False;
end
else
begin
Print := True;
with Item do
begin
Cells[2].Text := Format('%8s', [Trim(Cells[2].Text)]);
Cells[4].Text := '';
Cells[5].Text := '';
Cells[6].Text := '';
end;
end;
end;
Comments