Retrieve columns dynamicaly ...

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Kaster
Posts: 7
Joined: Wed Apr 19, 2017 4:09 pm

Retrieve columns dynamicaly ...

Post by Kaster »

I have "unlimited" count of columns, will retrieve it dynamicaly and show all in many rows to page. In the datasource are informations about type of value for each column, column name (header) and value object.

How to show it dynamicaly, without manualy retrieving each column and positioning it on the band?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Retrieve columns dynamicaly ...

Post by Alex K. »

Hello,

You can try to use Cross-Data component or create report from code:
https://www.stimulsoft.com/en/samples/w ... in-runtime

Thank you.
User avatar
Kaster
Posts: 7
Joined: Wed Apr 19, 2017 4:09 pm

Re: Retrieve columns dynamicaly ...

Post by Kaster »

... hm ...

Solution with creating report from code is not acceptable. I would like to offer possibility for my customers to change (the design) of the report themselves.


How to bind Cross-Data component with Datasource without manualy retrieving each column from datasource? Have not found corresponding examples.


Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Retrieve columns dynamicaly ...

Post by Alex K. »

Hello,

Could you provide a sample data for analysis.

Thank you.
User avatar
Kaster
Posts: 7
Joined: Wed Apr 19, 2017 4:09 pm

Re: Retrieve columns dynamicaly ...

Post by Kaster »

I have "unlimited" count of columns, but allways same count per row.
Each column have "description" of data (name, type and value).


Thanks

PS. see data
Attachments
schould be like this
schould be like this
dyncolumnreport_img.png (39.44 KiB) Viewed 2695 times
DynColReport.xml
Example Data
(1.65 KiB) Downloaded 303 times
User avatar
Kaster
Posts: 7
Joined: Wed Apr 19, 2017 4:09 pm

Re: Retrieve columns dynamicaly ...

Post by Kaster »

No idea or not undestand issue?


Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Retrieve columns dynamicaly ...

Post by Alex K. »

Hello,

There is not a simple way. Sample report in the attachment.
You can add additional data source with grouping by username and use Conditions to show only necessary records.

Thank you.
Attachments
Capture.PNG
Capture.PNG (57.04 KiB) Viewed 2678 times
ReportSample.mrt
(12.62 KiB) Downloaded 317 times
Post Reply