I have a situation where I need to format a Crystal Report to print. The problem is we have a form for a client's Drug and Alcohol Assessment and this form was created in a proprietary forms designer program where they used three tables to hold the data for this form.
This form has a lot of columns, something like 100 columns in the main table and another 60+ in the other tables. I do not have a lot of experience in CR. In the past for simple reports I would place the column header in the page header and the column values in the details so I can see the values for the different rows in the DB, then I could create a group to see each individual's records.
But in this case, what is important is to be able to print this for auditing.
To start with because there are three tables I used subreports. Our assessment is set up by Dimensions. There are 6 Dimensions to each assessment. What I want to see is the report Header with general info then the Page header with the name of the Client and the Reason for assessment (and a few other columns), then I want to see the Dimensions of the assessment, so Dim one then Dim two, then three and so on.
But because DIM 1 and 2 are inside of their own tables I needed to use subreports. Which is causing me problems. What I did was I placed the subreports inside of the footer section because this was the only place where the data didn't repeat so Dim 1 and 2 are in the footer area but I have 100 or so more columns to add to the report.
What I did was I then added the rest of the columns (DIM 3 - 6) from the main table in footer sections that I added i.e., so footer b, footer c, footer d and so on and then I placed the Dim 3 in footer b, Dim 4 in footer c etc., each Dim in it's own footer section. (SEE IMAGE).
While I don't want anything to repeat, I do need to be able to select an assessment from many assessments. And I'm not sure how to set this up. A client may (rarely) have more than one assessment, but we have many clients. So I'll need to have the report setup so one can select a client and see his assessment, and then print it.
As created now using the footers this form simply pulls the first client in the database! I think this is due to not using the details or another type of section correctly. I tried creating a group, and this inserted a group section that repeats the client name (what I grouped on) and this shows the other client's assessments but I lose data and if I select one of the other assessments I still see the data from the other assessment.
Were there no subreports I would place the info into the details section and select from the group selector on the left which should show the corresponding record. But, because I've got two tables that contain the data for Dim 1 and Dim 2 I can't figure out where I would place them.