[CLOSED] Compound report where user gets the opion of HTML, Excel or PDF
I have a report that has two reports due to what the user wants to see. I'm able to get the report to display correctly when I select HTML but when I select PDF or Excel I only see the 1st report. Please any and all help is greatly appreciated! This message has been edited. Last edited by: Kerry,
WEBFOCUS 7.6.4 Server: WINXP
April 23, 2010, 09:44 AM
fatboyjim
Hi,
You will need to make PDF and EXCEL to be compound reports.
Ok...I was able to get both of the reports to show up but they are displaying on seperate pages instead of one after the other. I'm a littlw closer. I used the ON TABLE SET COMPOUND OPEN NOBREAK on the first report and CLOSED on the 2nd report.
WEBFOCUS 7.6.4 Server: WINXP
April 23, 2010, 10:15 AM
fatboyjim
It might be depending on the report size that may not fit in one page. You may need to resize the reports (example from link)
Below are two ways to get the compound report to display in one page (approx 10 lines). And they seem to be working.
1) Directly into the ON TABLE HOLD
-* File compound.fex
-*SET COMPOUND='OPEN NOBREAK'
TABLE FILE EMPDATA
PRINT
DIV
DEPT
SALARY
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
-*ON TABLE PCHOLD FORMAT PDF
HEADING
"EMPDATA"
END
-*SET COMPOUND=CLOSE
TABLE FILE EMPLOYEE
PRINT
DEPARTMENT
LAST_NAME
FIRST_NAME
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT PDF CLOSE
-*ON TABLE PCHOLD FORMAT PDF
HEADING
"EMPLOYEE"
END
2) Using the SET command
-* File compound.fex
SET COMPOUND='OPEN NOBREAK'
TABLE FILE EMPDATA
PRINT
DIV
DEPT
SALARY
WHERE RECORDLIMIT EQ 10
-*ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
ON TABLE PCHOLD FORMAT PDF
HEADING
"EMPDATA"
END
SET COMPOUND=CLOSE
TABLE FILE EMPLOYEE
PRINT
DEPARTMENT
LAST_NAME
FIRST_NAME
WHERE RECORDLIMIT EQ 10
-*ON TABLE PCHOLD FORMAT PDF CLOSE
ON TABLE PCHOLD FORMAT PDF
HEADING
"EMPLOYEE"
END
Best Regards,
Jimmy PangThis message has been edited. Last edited by: fatboyjim,