Focal Point
[CLOSED] Compound report where user gets the opion of HTML, Excel or PDF

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/484100624

April 23, 2010, 09:37 AM
Latigresa
[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! Smiler

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.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
April 23, 2010, 09:49 AM
Latigresa
This is my first time working with compound reports. How do I make them compound? Thank you.


WEBFOCUS 7.6.4
Server: WINXP
April 23, 2010, 09:51 AM
Latigresa
I left out an important part. The user gets all three options. I'm using a parameter for the format.


WEBFOCUS 7.6.4
Server: WINXP
April 23, 2010, 10:02 AM
fatboyjim
You can take a look at the following page as an example for PDF.

http://documentation.informati...r26_pagelayout13.htm

It should be the same for excel as well.

I'm assuming that you have a variable that determines the format. Then you can add the OPEN and CLOSE keywords only for PDF and EXCEL format.

Hope that helps.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
April 23, 2010, 10:04 AM
Latigresa
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)


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
April 23, 2010, 10:16 AM
Latigresa
They are both like 10 lines at the most.


WEBFOCUS 7.6.4
Server: WINXP
April 23, 2010, 11:22 AM
fatboyjim
Hi,

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 Pang

This message has been edited. Last edited by: fatboyjim,


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV