Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] pdf report relative positioning.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] pdf report relative positioning.
 Login/Join
 
Gold member
posted
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
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Member
posted Hide Post
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


8207, Windows 2016 64b, HTML, AHTML, PDF, EXL07...
 
Posts: 27 | Location: Suresnes | Registered: August 26, 2010Report This Post
Gold member
posted Hide Post
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
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] pdf report relative positioning.

Copyright © 1996-2020 Information Builders