Recent

Author Topic: Report from json, string, xml ...  (Read 115 times)

michoux

  • Jr. Member
  • **
  • Posts: 70
Report from json, string, xml ...
« on: November 23, 2022, 09:27:35 pm »
Hi,

Quick question, I never worked with LazReport, did some tests today to get data from database ... this works ok.
Is it is possible to feed the report from json data or xml or string ...

Regards Mich

dseligo

  • Hero Member
  • *****
  • Posts: 814
Re: Report from json, string, xml ...
« Reply #1 on: November 23, 2022, 10:06:48 pm »
You can use TfrUserDataset component for that.

It has OnFirst, OnNext and OnCheckEOF events which are used to set, advance and check if your data is at the end.
I usually use OnGetValue event of the report to actually set data in the report.

P.S.: And if report is 'static' (that is, no need for multiple rows like in MasterData band) you can just set variables attached to report's memos from program before printing report.
« Last Edit: November 23, 2022, 10:12:58 pm by dseligo »

 

TinyPortal © 2005-2018