Dynamic DataSet Schema
-
- Posts: 19
- Joined: Thu Dec 03, 2009 10:38 am
Dynamic DataSet Schema
Is it possible using Stimulsoft to design a report where the number, types and names of the columns in the dataset is not known until it is time to render?
I'd want it to divide up the available space between the columns, preferably intelligently (i.e. looking at the sizes of the strings contained and selecting appropriate widths and font sizes).
Christian.
I'd want it to divide up the available space between the columns, preferably intelligently (i.e. looking at the sizes of the strings contained and selecting appropriate widths and font sizes).
Christian.
Dynamic DataSet Schema
Hi
No problem, it is possible to fill the Dictionary with data just before rendering.
Please see the following flash video:
http://www.stimulsoft.com/livedemos/run ... ntime.html
We have implemented a new table component which is intended for this. Just set AutoWidth property of that component and the table width will be adjusted automatically.
Thank you.
No problem, it is possible to fill the Dictionary with data just before rendering.
Please see the following flash video:
http://www.stimulsoft.com/livedemos/run ... ntime.html
We have implemented a new table component which is intended for this. Just set AutoWidth property of that component and the table width will be adjusted automatically.
Thank you.
-
- Posts: 19
- Joined: Thu Dec 03, 2009 10:38 am
Dynamic DataSet Schema
I'm not sure you have understood my problem. The flash video shows a table where the names and number of columns are known at design time. I wish to design a report (actually convert an existing report from a different technology). This report produces a table with run-time variable numbers of columns and rows.
So perhaps one run will produce a table with 4 rows and 3 columns. A different report run might produce 3 rows and 8 columns. At design time, the number and names of the columns are not known, so you can't enter them into the column band.
In the designer, I need to be able to say "display all the columns in the data set", rather than dragging individual columns to the bands. The data is generated dynamically and it is not possible to make a separate design for each set of possible columns. There are probably many millions of variations that the query will be producing.
Christian.
So perhaps one run will produce a table with 4 rows and 3 columns. A different report run might produce 3 rows and 8 columns. At design time, the number and names of the columns are not known, so you can't enter them into the column band.
In the designer, I need to be able to say "display all the columns in the data set", rather than dragging individual columns to the bands. The data is generated dynamically and it is not possible to make a separate design for each set of possible columns. There are probably many millions of variations that the query will be producing.
Christian.
Dynamic DataSet Schema
Hi Christian,
In that case you have to build your report in runtime from scratch.
Please see the following project:
Program Files\Stimulsoft Reports.Net 2009.3 Trial\Samples\C#\RuntimeBuildReport\
This project is the part of standard trial installation.
If you still having problems to figure out what you need to do, please feel free to send us a sample project of your task and we will help you to add all columns from the DATASOURCE to the databand in runtime.
Thank you.
In that case you have to build your report in runtime from scratch.
Please see the following project:
Program Files\Stimulsoft Reports.Net 2009.3 Trial\Samples\C#\RuntimeBuildReport\
This project is the part of standard trial installation.
If you still having problems to figure out what you need to do, please feel free to send us a sample project of your task and we will help you to add all columns from the DATASOURCE to the databand in runtime.
Thank you.
-
- Posts: 19
- Joined: Thu Dec 03, 2009 10:38 am
Dynamic DataSet Schema
OK. What would be nice is some sort of AutoTable feature, though.
Our intention is that end users will be designing the reports using the .WebDesign component. It may be programatically quite difficult to work out which tables are subject to change and how to detect which data bands are using the dynamic tables and to blow away the design within the band.
It would be so much easier if we can just tick a box in the designer and have Stimulsoft do all the hard work! It would literally be a case of setting the DataSource and telling it to do its best job of determining the columns.
Our intention is that end users will be designing the reports using the .WebDesign component. It may be programatically quite difficult to work out which tables are subject to change and how to detect which data bands are using the dynamic tables and to blow away the design within the band.
It would be so much easier if we can just tick a box in the designer and have Stimulsoft do all the hard work! It would literally be a case of setting the DataSource and telling it to do its best job of determining the columns.
Dynamic DataSet Schema
Hi Christian,
No problem, we will prepare an example with a Table component for you.
Thank you.
No problem, we will prepare an example with a Table component for you.
Thank you.
Dynamic DataSet Schema
Hello,
We have created an example. Please see the attached archive.
Let us know if you have additional questions.
Thank you.
We have created an example. Please see the attached archive.
Let us know if you have additional questions.
Thank you.
- Attachments
-
- 282.CSharp.zip
- (27.25 KiB) Downloaded 619 times
-
- Posts: 70
- Joined: Wed Feb 24, 2010 11:08 am
- Location: India
Dynamic DataSet Schema
Will it be possible for you to provide the same sample in vb.net?
Thanks in advance!
Thanks in advance!
Dynamic DataSet Schema
Hello,
Ok! Please see the attached archive.
Thank you.
Ok! Please see the attached archive.
Thank you.
- Attachments
-
- 352.PrintTable.zip
- (29.71 KiB) Downloaded 509 times