December 20, 2007, 11:32 AM
Darin LeeCompound Report within a compound report
To all the compound report afficionados-- Does anyone know if it is possible to have a compound report WITHIN a compound report? Here's my example: I am creating a compound PDF report that contains 4 reports and 12 graphs. One of the 4 reports contains 6 small sub-reports, displayed on one page in 2X3 fashion. I have created this report using the compound PDF layout tool with report coordination on - it looks great. Problem is, I need it to be included with the other reports and graphs, but each report is only coordinated within its own report type. So the packet order would be:
Report 1, sortfield1
Report 1, sortfield2
Report 2, sortfield1
Report 2, sortfield2
Graph 1, sortfield1
Graph 1, sortfield2, etc.
We have been using this report since the 4.3.6 days before PDF layout was even available so it is using some really complicated code. I have been dreading having to rewrite it and procrastinated as long as possible, but the days has finally come.
December 20, 2007, 12:18 PM
Tony ADarin,
I think that your only option would be to have the six reports as individual compound components using the "new" compound language. It should be quite simple for someone of your skills.
As you know I am not a fan of the GUI, and have a straight forward rule for creating compound reports. I just follow this style -
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=A3, $
PAGELAYOUT=1, NAME='Layout page 1', text='Compound Report', BOTTOMMARGIN=0.5, TOPMARGIN=0.5 $
COMPONENT='report1', TEXT='sometext', POSITION=(0.50 0.50), DIMENSION=(14.80 7.50), $
COMPONENT='report2', TEXT='Key', POSITION=(0.50 7.20), DIMENSION=(4.50 5.50), $
END
SET COMPONENT='report1'
TABLE FILE .....
END
-RUN
SET COMPONENT='report2'
TABLE FILE .....
etc.
COMPOUND END
Makes the new compound report syntax easy
Good luck
T