Assigne data to datasource.
-
- Posts: 74
- Joined: Fri Dec 07, 2012 11:35 am
Assigne data to datasource.
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;
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;
Re: Assigne data to datasource.
Hello,
Please send us a sample project which reproduces the issue for analysis.
Thank you.
Please send us a sample project which reproduces the issue for analysis.
Thank you.
-
- Posts: 74
- Joined: Fri Dec 07, 2012 11:35 am
Re: Assigne data to datasource.
Please .....
CREATE TABLE [dbo].[Table_1](
[id] [int] NULL,
[text] [varchar](100) NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[Table_1](
[id] [int] NULL,
[text] [varchar](100) NULL
) ON [PRIMARY]
- Attachments
-
- Required output
- Required.gif (80.13 KiB) Viewed 2188 times
-
- Current output
- currentOutput.png (133.24 KiB) Viewed 2188 times
-
- Report.mrt
- Report sample
- (8.33 KiB) Downloaded 170 times
Re: Assigne data to datasource.
Hello.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
-
- Posts: 74
- Joined: Fri Dec 07, 2012 11:35 am
Re: Assigne data to datasource.
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.
Re: Assigne data to datasource.
Hello,
Please send us a sample report with test data for analysis.
Thank you.
Please send us a sample report with test data for analysis.
Thank you.
-
- Posts: 74
- Joined: Fri Dec 07, 2012 11:35 am
Re: Assigne data to datasource.
Please finds the sample reports.
- Attachments
-
- New Folder (3).rar
- (6.3 KiB) Downloaded 186 times
Re: Assigne data to datasource.
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.
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.
-
- Posts: 74
- Joined: Fri Dec 07, 2012 11:35 am
Re: Assigne data to datasource.
Yes but I need to know will it possible in Designe or code?
Re: Assigne data to datasource.
Hello,
What do you mean about "possible in Designe or code"?
Thank you.
What do you mean about "possible in Designe or code"?
Thank you.