Hi All :
I'm learning the report and we have 2 datasets which need add into report
The structure of main dataset :
StudentID , StudentName, Class, Gender
Then we have another dataset (but this dataset ) is not related with main dataset , The structure is
QuestionID, QuestionMsg
Sample Data :
StduentID | StduentName | Class | Gender |
1 | Peter | 1A | Male |
2 | Katie | 2A | Female |
3 | Jack | 3A | Male |
The sub report dataset data
QuestionID | QuestionMsg |
1 | What is your name ? |
2 | Where do you live ? |
3 | What is your favorite drink ? |
And I want the report is :
Student ID : 1
Student Name : Peter
Class : 1A
Question :
1. What is your name ?
2. Where do you live ?
3. What is your favorite drink ?
---- Page Break ------
Student ID : 2
Student Name : Katie
Class : 2A
Question :
1. What is your name ?
2. Where do you live ?
3. What is your favorite drink ?
---- Page Break ------
with 3 pages
I want to put this two datasets in the same Tablix, but it is not work, I have found only 2 solutions for this case.
Solutions 1 : Create sub report and bind the datasets in this report. And then the main report add the sub report there.
Problem : It seem this solution require report server, and I cannot add sub report in local directory (e.g. c:\subreport.rdl) under report builder.
Solutions 2 :
It can add the table in Tablix, the cell expression using Lookup function or vlookup function
Problem : as above 2 datasets have not relationship, cannot join with any key. Any other expression code which can do ?
Thank you for your help.