Focal Point
[CLOSED] Compound PDF report, Document composer

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

July 30, 2014, 10:06 AM
subbu
[CLOSED] Compound PDF report, Document composer
Hello All,


I have a compound report called ownedbrand.fex.
the code is given below. it has only two requests of type PDF
   

TABLE FILE CAR
PRINT CAR BY COUNTRY
ON TABLE PCHOLD FORMAT PDF 
END

TABLE FILE CAR
PRINT RCOST DCOST SALES BY COUNTRY
ON TABLE PCHOLD FORMAT PDF  
END


am using a document composer and calling the ownedbrand.fex file. the code is given below
 COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^1', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=A4,  $
 
PAGELAYOUT=2, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report4', TEXT='report4', TOC-LEVEL=1, POSITION=(0.229 0.229), DIMENSION=(11.277 10.000), METADATA='Z-INDEX: 100; LEFT: 0.229in; OVERFLOW: auto; WIDTH: 11.277in; POSITION: absolute; TOP: 0.229in; HEIGHT: 10.000in', $
 
END

 
SET COMPONENT='report4'
-INCLUDE rxconred/app/ownedbrand.fex

COMPOUND END 


I was thinking if I run the report through document composer, I will get the complete two reports.

but, I'm getting only first report and not the second report from the ownedbrand.fex. Please let me know.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6.10
Windows
Output: Excel,PDF
July 30, 2014, 10:24 AM
nsk110483
You need to set COMPONENT for each individual item. In your case you need to set two components for two reports.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
July 30, 2014, 01:27 PM
subbu
Hi Nsk,

in that case could you please write a sample code for it, I know when specifiying the components we need to have seprate reports, my two reports requests are in the same fex file,

how can we put it as a component since it is one of the requests of the one fex file.

Please send me the dummy code you have.

Thanks!


WebFOCUS 7.6.10
Windows
Output: Excel,PDF