Hi, I'm doing the research on Stimulsoft Silverlight Reporting tool right now. I'm having an issue regarding report layout design.
Let said, I got a report wil 5 columns which is as Below
Code Name Col1 Col2 Col3
But sometime this report will expand the columns based on the user selection..
I'm can't provided the fixed column available in here due to it is based on user selection.
it might become 7 columns or more than that.
Code Name Col1 Col2 Col3 Col4 Col5
Can you please provide me any guide / sample to generate report with dynamic columns?
Thanks
Report Layout
-
- Posts: 31
- Joined: Mon Jun 07, 2010 7:55 am
- Location: Malaysia
Report Layout
Hello,
You can create a report dynamically from code or to change its components for ready report, depending on different conditions. We have created a simple sample for you.
Thank you.
You can create a report dynamically from code or to change its components for ready report, depending on different conditions. We have created a simple sample for you.
Thank you.
- Attachments
-
- 669.SilverlightApplication1.zip
- (39.58 KiB) Downloaded 287 times
-
- Posts: 31
- Joined: Mon Jun 07, 2010 7:55 am
- Location: Malaysia
Report Layout
Hi, thanks for your replied. I've tried with the sample application that you have provided.
I'm able to view it in report Designer but I'm unable to bind the data into report.
fyi, I'm made some changes in the sample in your code there.
Below is my code and changes
StiDataBand dataBand = new StiDataBand();
dataBand.CountData = 5;
dataBand.Height = 0.5;
dataBand.Name = "DataBand";
dataBand.DataSourceName = "ClientList";
page.Components.Add(dataBand);
.
.
.
.
clsClientList a = new clsClientList();
a.ClientID = 1;
a.ClientName = "Hello";
report.RegData("ClientList", a);
report.Dictionary.Synchronize();
report.Render();
report.Show();
Can you please help in this again?
I'm able to view it in report Designer but I'm unable to bind the data into report.
fyi, I'm made some changes in the sample in your code there.
Below is my code and changes
StiDataBand dataBand = new StiDataBand();
dataBand.CountData = 5;
dataBand.Height = 0.5;
dataBand.Name = "DataBand";
dataBand.DataSourceName = "ClientList";
page.Components.Add(dataBand);
.
.
.
.
clsClientList a = new clsClientList();
a.ClientID = 1;
a.ClientName = "Hello";
report.RegData("ClientList", a);
report.Dictionary.Synchronize();
report.Render();
report.Show();
Can you please help in this again?
Report Layout
Hello,
Sorry you can't use RegData method in Silverlight application. Silverlight does not support Ado.Net so you need use business objects for data. Please check following live video which demonstrates how to bind business object:
http://www.stimulsoft.com/livedemos.SL/ ... light.html
Thank you.
Sorry you can't use RegData method in Silverlight application. Silverlight does not support Ado.Net so you need use business objects for data. Please check following live video which demonstrates how to bind business object:
http://www.stimulsoft.com/livedemos.SL/ ... light.html
Thank you.