Report Builder hangs when setting Detail visible to false
We have a report builder script that used to set the Detail.Visible to false if a condition was met. This now seems to cause report builder to hang indefinitely. There seems to be nothing else needed to cause this problem. Is this a bug? Using Report Builder 23.
Here the block in the calc of the Report > Detail:
procedure DetailBeforePrint;
begin
Detail.Visible := false; // setting to false causes hang
end;
Here the block in the calc of the Report > Detail:
procedure DetailBeforePrint;
begin
Detail.Visible := false; // setting to false causes hang
end;
Comments
To better assist you, it would be helpful to understand the final goal of this code. While it's possible to set the visibility of the Detail band, this should be done selectively to conditionally hide specific details when necessary. It's uncommon to hide all details, especially if the report isn't connected to a dataset.
Could you please share more details about what you're trying to achieve? That way, we can work together on a solution that best fits your needs.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com