What is the proper way to pass a DataSet to the Report
Posted: Thu May 22, 2008 3:23 pm
I pass a DataSet of data to the report writer. Can you please tell me what the proper way to create a DataSet is?
I create my DataTables and then I set up DataRelations to represent table joins. I used to do a join going both directions.
relation = new DataRelation(strDataRelationName, columnParent, columnChild, false);
ds.Relations.Add(relation);
relationReverse = new DataRelation("Rev_" + strDataRelationName, columnChild, columnParent, false);
ds.Relations.Add(relationReverse);
Then, when I got a new build a few months back, the report writer got confused and listed the same tables multiple times. So, I just started putting the DataRelation going one direction and that seemed to work. However, now when I do a report with a join, only the first record is displayed.
I'm so confused. Please tell me what I'm doing wrong.
Thank you,
Sandy
I create my DataTables and then I set up DataRelations to represent table joins. I used to do a join going both directions.
relation = new DataRelation(strDataRelationName, columnParent, columnChild, false);
ds.Relations.Add(relation);
relationReverse = new DataRelation("Rev_" + strDataRelationName, columnChild, columnParent, false);
ds.Relations.Add(relationReverse);
Then, when I got a new build a few months back, the report writer got confused and listed the same tables multiple times. So, I just started putting the DataRelation going one direction and that seemed to work. However, now when I do a report with a join, only the first record is displayed.
I'm so confused. Please tell me what I'm doing wrong.
Thank you,
Sandy