June 22, 2006, 01:41 PM
BenCIs it possible to Put 4 Reports (Tables) into 1 Excel file?
Hi,
I have created a .fex where I have 4 tables and I want to output the results as 1 single excel file instead of having to save them separately. Is this possible? If so, can someone post the syntax?
June 22, 2006, 01:53 PM
debbiejIf you're using OFFICE 2003 (XP), and version 5.3 or above, you can do "compound" reports.
At the end of the first report you do
ON TABLE PCHOLD FORMAT EXL2K OPEN
If you want all of the results on the same tab, you add
ON TABLE PCHOLD FORMAT EXL2K NOBREAK
to each subsequent report.
On the last report you do
ON TABLE PCHOLD FORMAT EXL2K CLOSE
If you want each report to show on it's own tab in the Excel file, just do the OPEN on the first report, the CLOSE on the last report and
ON TABLE PCHOLD FORMAT EXL2K
on each report in between.
Deb
June 22, 2006, 01:54 PM
Jim_at_LMTABLE FILE ..
ON TABLE HOLD AS HOLD1
:
ON TABLE HOLD AS HOLD4
END
-RUN
DYNAM CONCAT DD HOLD1 HOLD2 HOLD3 HOLD4
TABLE FILE HOLD1
:
ON TABLE HOLD AS ... FORMAT EXL2K
June 22, 2006, 02:45 PM
MikelWF Doc. Ref.:
Creating Excel Compound Reports:
http://documentation.informationbuilders.com/masterinde...f713crlang/dis12.htmRegards,
Mikel
June 22, 2006, 03:30 PM
BenCWorked Great, thanks for the help everyone.