LazReport, added internal variable REPORTTITLE

git-svn-id: trunk@19743 -
This commit is contained in:
jesus 2009-05-01 16:39:43 +00:00
parent 6df88346a1
commit 06acd45a27

View File

@ -7608,6 +7608,11 @@ begin
begin
aValue:= frVariables[s];
Exit;
end else
if CompareText(s,'REPORTTITLE')=0 then
begin
aValue := Title;
Exit;
end;
if s <> SubValue then
begin
@ -7663,13 +7668,17 @@ begin
end;
procedure TfrReport.LoadFromXML(XML: TLrXMLConfig; Path: String);
var
ATitle: string;
begin
CurReport := Self;
frVersion := XML.GetValue(Path+'Version/Value', 21);
fComments.Text := XML.GetValue(Path+'Comments/Value', '');
fKeyWords := XML.GetValue(Path+'KeyWords/Value', '');
fSubject := XML.GetValue(Path+'Subject/Value', '');
fTitle := XML.GetValue(Path+'Title/Value', '');
ATitle := XML.GetValue(Path+'Title/Value', '');
if ATitle<>'' then
fTitle := ATitle;
// XML.SetValue(Path+'ReportCreateDate/Value', FReportCreateDate);
// XML.SetValue(Path+'ReportCreateDate/Value', FReportLastChange);