preport: TFPReportUserData raise Unknown identifier
Original Reporter info from Mantis: af0815 @afriess
-
Reporter name: Andi Friess
Original Reporter info from Mantis: af0815 @afriess
- Reporter name: Andi Friess
Description:
The code in in lazarus\examples\fpreport\simple\SimpleReportLCL.lpr was working was time ago (27.2.2018 Lazarus svn 57394), but now i got the errormessage .... EExprParser ... 'Unknown identifier: userdata.string
Steps to reproduce:
A) Open Lazarus trunk, open the example in\examples\fpreport\simple\SimpleReportLCL.lpr
B) Run the code and press one of the Render-buttons. All renderer have the same issue.
Additional information:
....
lReportData := TFPReportUserData.Create(Self);
lReportData.Name:='userdata';
lReportData.OnGetValue := @GetReportDataValue;
lReportData.OnGetEOF := @GetReportDataEOF;
lReportData.OnFirst := @GetReportDataFirst;
lReportData.OnGetNames := @GetReportDataNames;
lReportData.InitFieldDefs;
InitialiseData;
....
p := TFPReportPage.Create(FReport);
p.Orientation := poPortrait;
p.PageSize.PaperName := 'A4';
p.Data := lReportData;
....
Memo := TFPReportMemo.Create(DataBand);
Memo.Font.Name := defaultFont;
Memo.Text := 'Hello world <[userdata.string]>.';
....
Mantis conversion info:
- Mantis ID: 33656
- OS: Win10 / 64 Pro
- OS Build: Win10 / 64 Pro
- Build: 38845
- Platform: Dell XPS
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 38905 (#da133b24)
- Target version: 3.2.0