diff --git a/components/lazreport/source/lr_utils.pas b/components/lazreport/source/lr_utils.pas index 15b16ad118..333bb59642 100644 --- a/components/lazreport/source/lr_utils.pas +++ b/components/lazreport/source/lr_utils.pas @@ -457,6 +457,13 @@ begin end; Owner := FindGlobalComponent(s1); + if Owner=nil then begin + // try screen registered containers + // which at design time are not in FindGlobalComponentList + Owner := Screen.FindDataModule(s1); + if Owner=nil then + Owner := Screen.FindForm(s1); + end; if Owner <> nil then begin if s3<>'' then