function TfrxReportPage.FindBand(Band: TfrxBandClass): TfrxBand;

edited 5:25AM in FastReport VCL 5
In the function below happens the error of 'access violation' after opening 'fr3' the second time.


function TfrxReportPage.FindBand(Band: TfrxBandClass): TfrxBand;
var
i: Integer;
begin
Result := nil;
try
for i := 0 to FObjects.Count - 1 do
if TObject(FObjects) is Band then
begin
Result := FObjects;
break;
end;
except

end;
end;

To solve, I put a Try Except - horrible!

Comments

  • edited 5:25AM
    the problem is TfrxOverlay with heigth grand than page... i dont understand... I reduced the band "overlay" and came back to work.,,.

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.