Thanks Dgraff and jgelona for kind reply~!
I think jgelona is right that excel templates with compound reports is not supported in WF7.1.3.
It works pretty well in WF7.1.4 and you can see more detail about this function in
http://fire2007.org/resources/EXL2K_Templates_FIRE2007.ppt
Here is another more simple code that I used.
This also works well in 7.1.4 but results same error message like this
"Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log."
--------------------------------------------------------------------------------------------------
SET HOLDLIST = PRINTONLY
APP FI HOLD1 DISK D:\FLEXS\MHTHOLD1.MHT
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
RETAIL_COST
DEALER_COST
COMPUTE MARGIN/D5.2 = (RETAIL_COST - DEALER_COST) / DEALER_COST;
ON TABLE HOLD AS HOLD1 FORMAT EXL2K TEMPLATE 'CARTEMP' SHEETNUMBER 2
END
-RUN
TABLE FILE CAR
PRINT
COUNTRY
COMPUTE COUNTRY_C/A30 = IF COUNTRY EQ 'ENGLAND' THEN 'UK'
ELSE IF COUNTRY EQ 'JAPAN' THEN 'JP'
ELSE IF COUNTRY EQ 'ITALY' THEN 'IT'
ELSE IF COUNTRY EQ 'W GERMANY' THEN 'GR'
ELSE IF COUNTRY EQ 'KOREA' THEN 'KR'
ELSE 'ETC';
COMPUTE IMSI/A10 = 'SHEET3'; AS 'SHEET NO'
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'MHTHOLD1' SHEETNUMBER 3
END
-RUN
-EXIT
-------------------------------------------------------------------------------------------
This code is running on Windows2003/ WF764z(or WF714) /Office2003
Any assistance you can provide is so much appreciated!
Windows2003,
WebFocus714, WebFocus764