Assigne data to datasource.

Stimulsoft Reports.NET discussion
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Assigne data to datasource.

Post by amitkaushik »

I want to fetch data from multipal tables for a report,
and try to keep them on design and with the code. I use below code, it's work fine with design DataSouce but no data found with Datasource created with code.


report1.RegData("DS", DataSet);
report1.Compile();
report1.CompiledReport.DataSources["DS"].Parameters["@ID"].ParameterValue = Id;
report1.CompiledReport.DataSources["DS"].Parameters["@Age"].ParameterValue = age;
report1.CompiledReport.DataSources["DS"].Parameters["@State"].ParameterValue = state;
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Assigne data to datasource.

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Assigne data to datasource.

Post by amitkaushik »

Please .....

CREATE TABLE [dbo].[Table_1](
[id] [int] NULL,
[text] [varchar](100) NULL
) ON [PRIMARY]
Attachments
Required output
Required output
Required.gif (80.13 KiB) Viewed 2188 times
Current output
Current output
currentOutput.png (133.24 KiB) Viewed 2188 times
Report.mrt
Report sample
(8.33 KiB) Downloaded 170 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Assigne data to datasource.

Post by HighAley »

Hello.

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Assigne data to datasource.

Post by amitkaushik »

Basicly, My Datasource hold duplicate IDs and I have to show values in one cell related to one ID. But cross data band generate one cell for each record so I need to combine them in one cell on the base of ID.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Assigne data to datasource.

Post by Alex K. »

Hello,

Please send us a sample report with test data for analysis.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Assigne data to datasource.

Post by amitkaushik »

Please finds the sample reports.
Attachments
New Folder (3).rar
(6.3 KiB) Downloaded 186 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Assigne data to datasource.

Post by Alex K. »

Hello,

Please see the following topic:
http://forum.stimulsoft.com/viewtopic.p ... 8&start=10

In which you send a similar task. Please clarify which different?

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Assigne data to datasource.

Post by amitkaushik »

Yes but I need to know will it possible in Designe or code?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Assigne data to datasource.

Post by Alex K. »

Hello,

What do you mean about "possible in Designe or code"?

Thank you.
Post Reply