Focal Point
[SOLVED] PDF Compound Layout Report Issue

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

July 23, 2020, 11:59 AM
AMC2
[SOLVED] PDF Compound Layout Report Issue
I get the following error when including a 4th report in my Compound Layout section for a PDF report:

(FOC3281) COMPOUND REPORT: MISSING CLOSE OR ERROR IN FINAL REPORT

The first 3 reports run successfully in the Compound Layout When I add the 4th report I get the error. The first 3 are reports and the 4th is a bar chart. They all run fine individually. Here's the code for the PDF Layout:

  
SET PAGE-NUM=OFF
SET SQUEEZE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
SECTION=S1, LAYOUT=ON, MERGE=OFF, ORIENTATION=LANDSCAPE, $
PAGELAYOUT=1, TOC-LEVEL=1, BOTTOMMARGIN=0.0, TOPMARGIN=0.0, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=0,TOPMARGIN=0,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT=R1, TYPE=REPORT, POSITION=(1 1), DIMENSION=(4 4), $
COMPONENT=R2, TYPE=REPORT, POSITION=(5 1), DIMENSION=(4 4), $
COMPONENT=R3, TYPE=REPORT, POSITION=(7 1), DIMENSION=(4 4), $
COMPONENT=R4, TYPE=REPORT, POSITION=(1 4), DIMENSION=(* *), $
END
SET COMPONENT=R1
EX  IBFS:/WFC/Repository/PMR/ValueBasedPayment/PMR_vbp_est_pymt.fex
SET COMPONENT=R2
EX  IBFS:/WFC/Repository/PMR/ValueBasedPayment/PMR_vbp_per_pot_pymnt.fex
SET COMPONENT=R3
EX  IBFS:/WFC/Repository/PMR/ValueBasedPayment/PMR_vbp_prov_select.fex
SET COMPONENT=R4
EX  IBFS:/WFC/Repository/PMR/ValueBasedPayment/PMR_vbp_estvspot_chart.fex
COMPOUND END

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
July 23, 2020, 04:33 PM
AMC2
Does anyone know if there's anything that needs to be done differently for charts/graphs when including them in a PDF Compound Layout? Anyone has any ideas?


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
July 24, 2020, 08:10 AM
MartinY
Based on displayed error, it seems that your fourth one is the problem.

This is not a TYPE=REPORT, you have a graph. Instead of adding a graph component you have added a report
COMPONENT=R4, COMPONENT-TYPE=GRAPH, POSITION=(1 4), DIMENSION=(* *), $



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
July 24, 2020, 04:25 PM
AMC2
MartinY - Thanks...I overlooked using GRAPH as the TYPE.

Have to add another report after the graph. I'll look to do that.


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
July 30, 2020, 11:47 AM
AMC2
It appears that the font at the individual fex level is overridden in the PDF Compound Layout. That is what it appears to be doing I believe.

Does anyone know exactly where to set the font in the code for the Compound Layout?


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
July 31, 2020, 08:18 AM
MartinY
quote:
Originally posted by AMC2:
It appears that the font at the individual fex level is overridden in the PDF Compound Layout. That is what it appears to be doing I believe.

I doubt that this is the case. AFAIK there is nothing to in Compound to change the font. Each report can have its own font/format/styling.
If you create a new HTML/Document then select Document (PDF, Excel...) from the File Type you will end up in a Compound Layout designer and you have no choice to globally assign a font.

Maybe you different reports are overlapping each other but I doubt that PDF Compound override the individual font


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
July 31, 2020, 10:25 PM
AMC2
MartinY - You are correct...it's not that the Compound Layout is overriding the font I found out. I am using open sans font in my individual reports and it was not being invoked when generating the PDF Compound Layout. It would default to another font and I thought it was the Compound Layout affecting it.

However, I found out from one of our admins that I needed to use the open sans font this way...."OPEN SANS" for PDF within the reports. It needs to be specified with a space between "Open" and "Sans" for it to take effect for PDFs.


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc