I created a custom field in Designer to request a date range from the user, I need to be able to print the selected date range on the header as a label. Without being able to print the date range the reports is useless.
That what exactly I am looking for. But I did it in as follows RAP because we don't want release the whole product right now..
GlobalConst gcKnownValue= 'Show all data Where the ' ;
procedure LablexOnPrint; var HoldValue : string begin if Report.AutoSearchFieldCount > 0 then begin HoldValue := Report.AutoSearchDescription; Label8.Caption := copy(HoldValue , Length(gcKnownValue), 255); // I don't want to label say 'Show all data Where the ' end else begin Label8.Visible := false; end; end;
Comments
For an example see
RBuilder\Demos\AutoSearch\BuildDescriptionOfAutoSearchSetttings.
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Cheers,
Lisa Fuller
Digital Metaphors Corporation
sales@digital-metaphors.com
http://www.digital-metaphors.com
info@digital-metaphors.com
That what exactly I am looking for.
But I did it in as follows RAP because we don't want release the whole
product right now..
GlobalConst
gcKnownValue= 'Show all data Where the ' ;
procedure LablexOnPrint;
var
HoldValue : string
begin
if Report.AutoSearchFieldCount > 0 then begin
HoldValue := Report.AutoSearchDescription;
Label8.Caption := copy(HoldValue , Length(gcKnownValue), 255); // I
don't want to label say 'Show all data Where the '
end
else begin
Label8.Visible := false;
end;
end;
Cheers!!
-Bhoj
Tenmast