'FastReport: Is it possible to show data horizontally/programmatically?
This is my first time using FastReport in my project. So I have trouble in creating a table. This is the table I want to show in my report.
This is the datasource I pass to the report:
<BusinessObjectDataSource Name="Employee" ReferenceName="Employee" DataType="null" Enabled="true">
<Column Name="Name" DataType="System.String"/>
<BusinessObjectDataSource Name="Detail" ReferenceName="Detail" DataType="null" Enabled="true">
<Column Name="Description" DataType="System.String"/>
<Column Name="DataA" DataType="System.Decimal"/>
<Column Name="DataB" DataType="System.Decimal"/>
</BusinessObjectDataSource>
</BusinessObjectDataSource>
And this is data sample:
[{
Name: "Employee1",
Detail: [{
Description: 'Data1',
DataA: 0,
DataB:12.25
},
{
Description: 'Data2',
DataA: 0,
DataB:2
},
{
Description: 'Data3',
DataA: 0,
DataB:7.5
}]
},
{
Name: "Employee2",
Detail: [{
Description: 'Data1',
DataA: 0,
DataB: 3
},
{
Description: 'Data2',
DataA: 0,
DataB: 2
},
{
Description: 'Data3',
DataA: 0,
DataB: 30
}]
}
]
This I try to use table but this is what I get:
Is it possible to loop the data horizontally inside the table? Or is there any programmatical method that I could try? I try to search for the solution but nothings suitable to solve my problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


