Visual Studio 2005 Crystal Reports multiple datasets iteration
Posted on 2007-03-28
I am developing a program in Visual Studio 2005, using VB.NET 2005. Back end of the program is SQL Server Express 2005.
I am hoping someone could help me how to design a report using Crystal Reports in Visual Studio 2005.
I have two Tables
ControlWorkSheet and JMF
--> ControlWorksheet has data for each Test Sample
--> Each Test Sample is associated with a Unique JMF Number
--> Typically for each Test Sample there are 4-5 tests done and saved in ControlWorkSheet Table as TestA, TestB, TestC, .. etc
--> The report i have to make should show data for Each TestA, TestB, etc in a column, Next to it a column of Values associated with the Unique JMF Number and its associated values from the JMF Table
Sample report should look like below
TestA JMFValues TestB JMFValues TestC JMFValues etc
abc def ghi jkl mno pqr
123 456 789 101 121 134
When the user selects Tests for SAmple
I can find out all the tests associated with the sample here for example TestA, TestB, etc
from that i can also find out the Unique JMF number assigned to that particulat TEstA, TestB, etc
When i pass the dataset to teh crystal report, how would i pass the values for 4 Tests and 4 JMF values when i am using one dataset for example here "dsControlWorksheet" and "dsJMF", because the values i drag and drop onto crystal report are the same in how ever many tests A,B, C may be
How would i iterate threw the 4 Tests and iterate threw the JMF Numbers datasets and pass them to crystal report so that it can show the report like i tried to show above.
Any and All help would be greatly appreciated.
Thanks in advance.