Hi, I got a problem regarding your C1WebReport control.
I'm using a subreport in an report and I'll submit the RecordSource of this Subreport via my code with a stored procedure that appears like:
ALTER PROCEDURE [dbo].[get_Positions]
(
@ID nvarchar(50),
@TYPE nvarchar(50)
)
AS
BEGIN
SELECT * FROM qryITEM_LIST WHERE ID = @BT_ID AND TYPE = @BT_TYPE
end
qryITEM_LIST is a View and works without any problems.
My source code is like the following:
this.C1WebReport1.Report.Fields["subReport"].Subreport.DataSource.RecordSource = "get_Positions('" + this.GetUrlParam("ID") + "', '" + this.GetUrlParam("TYPE") + "')";
where GetUrlParam is a function to get parameters out of the URL. Everything fine, my goal was to filter the results for the subreport via the ID and TYPE. Works great, but (I have to say the subreport is in the detail section of my main report) it repeats itself over and over again.
For example, I have 2 Items in the ItemList with ID = 2999 and TYPE = ABC.
The report shows me the following:
1 Article
2 Article2
1 Article
2 Article2
1 Article
2 Article2
1 Article
2 Article2
Might you have something to help me with this problem? Sometime sit's different and just shows everything 3 or 2 times. I don't know...
Greetings