Focal Point
[CLOSED]Coordinated Compound Rpt with Relative positioning & Page-break - Not Working

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

February 27, 2020, 02:21 PM
prad9293
[CLOSED]Coordinated Compound Rpt with Relative positioning & Page-break - Not Working
I am trying to create a Coordinated compound report with relative positioning and burst it with ReportCaster.

Scenario:
Explaining with the car master - Need to create a PDF file for each country and page-break by car, Executing the below code With bursting i get 5 PDF files (One for each country) with details of one car in each page.

  

APP PATH IBISAMP
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', 
MERGE=ON, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, 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='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.625 0.521), DIMENSION=(5.000 5.000),  $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.625 2.583), DIMENSION=(5.000 8.000),  $
END
SET COMPONENT='report1'
-*component_type report
TABLE FILE CAR 
SUM SALES AS ''
BY COUNTRY AS ''
BY CAR AS ''
ON CAR PAGE-BREAK
ON TABLE PCHOLD FORMAT PDF 
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET STYLE *
TYPE=DATA,STYLE=BOLD,BACKCOLOR=WHITE,COLOR=BLACK,BORDER=1.0,$
ENDSTYLE
END

SET COMPONENT='report2'
-*component_type report
TABLE FILE CAR
SUM 
DEALER_COST AS ''
RETAIL_COST AS ''
BY COUNTRY AS ''
BY CAR AS ''
ON CAR PAGE-BREAK
ON TABLE PCHOLD FORMAT PDF 
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET STYLE *
TYPE=DATA,STYLE=BOLD,BACKCOLOR=WHITE,COLOR=BLACK,BORDER=1.0,$
ENDSTYLE
END
-RUN
COMPOUND END



However when i try to change it to relative positioning between report 1 and report 2 , it generates inconsistent positioning of the report. Is there a way to achieve this ? Below is the compound report layout i used for trial.

  

APP PATH IBISAMP
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', 
MERGE=ON, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, 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='report1',TEXT='report1', TOC-LEVEL=2, POSITION=(0.5000 0.5000), DIMENSION=(* *), $
COMPONENT='report2',TEXT='report2', TOC-LEVEL=2, POSITION=(0.5000 +0.100), DIMENSION=(* *), RELATIVE-TO='report1', RELATIVE-POINT=BOTTOM-LEFT, POSITION-POINT=TOP-LEFT, $
END



Thank you in advance.

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


WEBFOCUS 82
Windows X64
HTML,PDF,EXCEL
March 03, 2020, 03:39 PM
FP Mod Chuck
Prad

I played with this and didn't have any luck either. I suggest you open a case with techsupport if you haven't already.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats