Focal Point
[SOLVED] pdf report relative positioning.

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

July 28, 2014, 01:46 PM
nsk110483
[SOLVED] pdf report relative positioning.
Hi All,

I tried searching in the forum (maybe i don't know what exactly to put in search field), but could not find what i need.

I have started of my report with document composer and used its auto generated code to style and position my reports.
However, there is one challenge I couldn't solve. I have two different report components, second report's position is relative to first report. My first report ends somewhere midway on page1 and that's where my second report starts, so far so good, but the problem is that second report could span across multiple pages. the pdf output somehow leaves half page empty across all pages from page2.

What Can I do to make sure there isn't any annoying whitespace on my pdf output.?

 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=OFF, 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,', $
-*

OBJECT=STRING	,TEXT='<left>&P_REP_TITLE</left>',MARKUP=ON,JUSTIFY=RIGHT ,FONT=VERDANA, SIZE=12, STYLE=BOLD,POSITION=(0.520  1.00)	,DIMENSION=( 5.5   1.0)	,$

OBJECT=STRING	,TEXT='<left>Distinct States,Cities and ZIPs</left>',MARKUP=ON,JUSTIFY=LEFT ,FONT=VERDANA, SIZE=6, STYLE=BOLD,POSITION=(0.520 1.65)	,DIMENSION=( 5.5   2)	,$
COMPONENT=L01_1_rpt_dtl		,POSITION=(0.520   1.80)	,DIMENSION=( 2.625 9 )	,$

OBJECT=STRING	,TEXT='<left>By Node</left>',MARKUP=ON,JUSTIFY=LEFT ,FONT=VERDANA, SIZE=6, STYLE=BOLD,POSITION=(0.520 +.2)	,DIMENSION=( 5.5   2),RELATIVE-TO=L01_1_rpt_dtl,RELATIVE-POINT=BOTTOM-LEFT	,POSITION-POINT=TOP-LEFT,$

COMPONENT=L02_1_rpt_dtl		,POSITION=(0.520   +.35)	,DIMENSION=( 6.625 9 )	,RELATIVE-TO=L01_1_rpt_dtl	,RELATIVE-POINT=BOTTOM-LEFT	,POSITION-POINT=TOP-LEFT,$

END 

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


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, 09:06 AM
Patlechat
hello,

you have to use the Overflow property of the second fex ( L02_1_rpt_dt1 ) in order to allow max sizing and you have to use the FLOW_TOP_MARGIN to prevent top of report to be in your top style.

In L02_1_rpt_dt1, replace the dimension value by *

Example :

rap1.fex
 
TABLE FILE CAR
PRINT
     DEALER_COST
     RETAIL_COST
BY  LOWEST COUNTRY
BY  LOWEST CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END
 


Rap2.fex
  
TABLE FILE EMPDATA
PRINT
     PIN
BY  LOWEST DIV
BY  LOWEST DEPT
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END





Fex done with Compound assist :
  
-* Default Mode: ResourceLayout
*-HOLD_SOURCE
-* File compopo
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=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Presentation page 1', text='Presentation page 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=1.1, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=1.1,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(1.662 1.041), DIMENSION=(4.478 4.373),  ARREPORTSIZE=DIMENSION, METADATA='Z-INDEX: 1; POSITION: absolute; WIDTH: 4.478in; HEIGHT: 4.373in; TOP: 1.041in; LEFT: 1.662in', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(-0.724 +0.211), DIMENSION=(* *), RELATIVE-TO='report1', RELATIVE-POINT=BOTTOM-LEFT, POSITION-POINT=TOP-LEFT,  ARREPORTSIZE=DIMENSION, METADATA='Z-INDEX: 2; POSITION: absolute; WIDTH: 6.042in; HEIGHT: 4.792in; TOP: 5.625in; LEFT: 0.938in', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE rap1.fex
SET COMPONENT='report2'
-*component_type report
-INCLUDE rap2.fex
COMPOUND END


Rgds,

Patrick


8007 FR, Windows 2008 R2 64b, HTML, AHTML, PDF, EXL07...
July 30, 2014, 09:32 AM
nsk110483
Awesome! That worked.

Thanks Patrick


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts