First let me say I have tried to find a "Consultant" that could help me with experience in DataSets to no avail as of yet. If there are any resources anyone knows about I would be interested.
Now onto the issue;
My report is driven from a DataSet passed to it from a C# application. (note that I have control over the DataSet Schema and Data therein.)
"Copy of PrecDX Lab Report_Example for APV.jpg" is one of the reports I need to generate ("PMREPORT")
Up until the inclusion of "PMREPORT" my reporting works fine using the Following Approach
I created a "TOP" level report that consisted of several "Detail" section each of which was a different report;
Detail A: Subreport "Sample"
Detail B: SubReport "Drug"
The "TOP" reports DataSet simply was a single table with one row and two columns; "standard" and "drug". If "standard" = "No" then Subreport "Sample" was suppressed and if "drug" = "No" then Subreport "Drug" was supressed
My C# Code passed the DataSet for SubReport "Sample" to that Subreport and the DataSet for "Drug" to tat Subreport. This all works fine.
In attempting to create the same scenario for the "PMREPORT" I ran into the issue of producing this report to closely resemble the attached example.
As can be seen by the example, there are six "sections" (I used grouping for each section)
"Header" that includes the Reported Clinical History
"Consistent" that has one or more Medications
"Inconsistent" that has one or more Medications
"Present" that contains one or more Medications
"Reported but not tested" that is sinfle field
"Specimen Validity" that contains one or more tests
"Footer" that contains the disclaimer text
The problem is in the "Consistent", "Inconsistent", and "Present" groups. To the right of a given Medication there are four columns and one or more rows ("Results"). To the left of this is a Comment. Trying to accomplish a layout (grid around each of the"Results", Box around the Medication that grows depending upon the number of "Result" rows, and the box around the comment that again grows depending upon the number of "Result" rows.
To follow this through we look at one section Consistent. My original approach was to group on "medication" (a group that was not output), then group on "Results". I placed a Box on the left that "extends to the Bottom of Section when printing" and placed "medication" inside the box, then to the right the 4 columns of the "Results" using lines to create the grid, then to the right of that a Box (also extends to the Bottom of Section when printing) placing "Comment" onside of it. This does not work because when there is more than one Row in "Results" the section is repeated for each row so there is a "Medication" and "Comment" box output for each "Result" which defeats the purpose.
The solution would be to use a SubReport as the "Results" but my understanding is you cannot pass a DataSet to a SubReport of a SubReport.
Any solutions to this issue would be greatly appreciated.