SubReport.IsEmpty
Hello.
How to check data existing in the ChildReport from the main report via the
RAP ?
Here is an example.
procedure DetailBeforePrint;;
begin
ppSubReport.SkipWhenNoRecords:=False;
if ppSubReport.IsEmpty then
Label1.Caption:='SubReport is empty'; ------???
end;
--
WBR Sergey Kovalev svk@siamed.ru
SIA International Ltd
How to check data existing in the ChildReport from the main report via the
RAP ?
Here is an example.
procedure DetailBeforePrint;;
begin
ppSubReport.SkipWhenNoRecords:=False;
if ppSubReport.IsEmpty then
Label1.Caption:='SubReport is empty'; ------???
end;
--
WBR Sergey Kovalev svk@siamed.ru
SIA International Ltd
This discussion has been closed.
Comments
- for a master/detail linking relationship, you can use the Linking dialog
from the Data workspace to specify that you want to include master records
in which no corresponding detail exists.
- the Report and ChildReport classes have a NoDataBehaviors property that
can be used to control what happens when the data is empty. Access the
workspace the subreport and then use the object inspector to set the child
report NoDataBehaviors. Use ndMessageOnPage value to display a message on
the empty page. See the RBuilder.hlp for details.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com