Using JSON(Javascript Object Notation) datasource send data from .Net Core

Hi,

I create a list from person class that using .Net Core 5.0. and send to report but fastreport consists of a single line from the first element of the list.

      List<Person> data = GetDummyData();
      Report report = new Report();
      report.Load("C:\\Users\\testyazilim\\Desktop\\PersonJsonTest.frx");
      report.RegisterData(data, "JSON.item");
      report.Prepare();

The json format I use is as follows; and json schema is created automatically.

{
 "Id": {
  "type": "integer"
 },
 "Name": {
  "type": "string"
 },
 "Surname": {
  "type": "string"
 },
 "Age": {
  "type": "integer"
 }
}

the report is generated successfully but only from a single line, although I use a table in ".frx" report. I used many different versions of json, but the result was the same.

I use FastReport Community.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.