Detail Data
Good morning guys, anyone out there who works with FastReport using the 'data details' can you pass me an example? tried my best not to use this function, but now no way. Thank you all.
?
?
?
Another information: not just write the details on all lines, but not write when the field is empty, type, 3 cases have a budget where the first and last have products and services, but the second has only services. What will be displayed is only the product, as the second layer has, wish it were as follows:
?
?
Capa1
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
Capa2
Capa3
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
?
?
if you have been confused talk please.
?
?
?
Another information: not just write the details on all lines, but not write when the field is empty, type, 3 cases have a budget where the first and last have products and services, but the second has only services. What will be displayed is only the product, as the second layer has, wish it were as follows:
?
?
Capa1
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
Capa2
Capa3
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
? ? ? ? ? ? ? ? detail
?
?
if you have been confused talk please.
Comments
I would like to delete these blanks (photos attached)
generally to hide a band you would write code in the obp event of the band to set the bands visible property.
yes, exactly.
var
ds: tfrxdataset;
in the master data obp event
begin
ds :=report.getdataset('username of your client dataset');
masterdatabandname.visible:= ds.recordcount >0;
end;
var
ds: tfrxdataset;
//in the master data obp event
procedure DetailData2OnBeforePrint(Sender: TfrxComponent);
begin
ds :=report.getdataset('PRO2');
DetailData2.visible:= ds.recordcount > 0;
//showmessage(DetailData2.visible);
end;
This way? I'm trying so but always returns false the visible.
"ds :=report.getdataset('PRO2');"
to ds:= name of your detaildataband.dataset;