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] Compound Portrait vs Landscape

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Compound Portrait vs Landscape
 Login/Join
 
Platinum Member
posted
I have a compound report that I want the first page to be PORTRAIT and the second page to be LANDSCAPE. The second page is indeed LANDSCAPE, but the data is printing up and down on the page like it is a PORTRAIT page. Here is the code:

PAGELAYOUT=3, NAME='Page Master3', ORIENTATION=LANDSCAPE, PAGESIZE='Letter', $
OBJECT=STRING, NAME='header1', TEXT='ANNEX A', POSITION=(7.2 0.5), MARKUP=ON, WRAP=ON, DIMENSION=(7.0 0.167), style=bold, METADATA='', $
OBJECT=STRING, NAME='header2', TEXT='COMPOSITION OF THE REFERENCE POOL', POSITION=(2.7 0.7), MARKUP=ON, WRAP=ON, DIMENSION=(11.0 0.167), style=bold, METADATA='', $
COMPONENT='DfltCmpt3', POSITION=(0 0), DIMENSION=(0 0), $
PAGELAYOUT=3, NAME='Page layout 3', text='Page layout 3', TOC-LEVEL=0, BOTTOMMARGIN=0.1, TOPMARGIN=1.0, METADATA='BOTTOMMARGIN=0.1,TOPMARGIN=0.8,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report301', TEXT='Test', TOC-LEVEL=2, POSITION=(1.1 3.85), DIMENSION=(* *), REQUIRED-SPACE=(* 2), $


SET COMPONENT='DfltCmpt3'
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
IF READLIMIT EQ 1
ON TABLE SET PREVIEW ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
END

SET COMPONENT='report301'
TABLE FILE HOLDTBL12
SUM
YEAR_OF_TERM_DATE AS ' '
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *

TYPE=REPORT, FONT=ARIAL, SIZE=9, BORDER=OFF,BORDER-RIGHT=OFF,STYLE=NORMAL,WRAP=8.0,ORIENTATION=LANDSCAPE, PAGESIZE='Letter',
$
TYPE=DATA, TOPGAP=0.01, BOTTOMGAP=0.01, JUSTIFY=LEFT, SIZE=9,
$
TYPE= SUBHEAD, JUSTIFY=LEFT, BORDER=OFF, WRAP= 0.4,
$
TYPE= HEADING, JUSTIFY=LEFT, BORDER=OFF, WRAP= 0.4,
$
ENDSTYLE
END

This message has been edited. Last edited by: Ted Michalski,


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Expert
posted Hide Post
Please edit your original posting and put your code between
[code]
[/code]
tags.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Compound report that seems to work:

-* File compound1
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
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=SCREEN,  $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, ORIENTATION=PORTRAIT, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=PORTRAIT,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.544 0.545), DIMENSION=(7.451 9.819), METADATA='Z-INDEX: 100; LEFT: 0.544in; OVERFLOW: auto; WIDTH: 7.451in; POSITION: absolute; TOP: 0.545in; HEIGHT: 9.819in', $
PAGELAYOUT=2, NAME='Page layout 2', text='Page layout 2', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.546 0.635), DIMENSION=(7.453 9.862), METADATA='Z-INDEX: 100; LEFT: 0.546in; OVERFLOW: auto; WIDTH: 7.453in; POSITION: absolute; TOP: 0.635in; HEIGHT: 9.862in', $
END
SET COMPONENT='report1'
-*component_type report
TABLE FILE CAR
SUM 
     'CAR.BODY.SEATS'
     'CAR.BODY.DEALER_COST'
     'CAR.BODY.SALES'
BY 'CAR.COMP.CAR'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.CARREC.MODEL'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
     COLOR='RED',
     STYLE=NORMAL,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END
SET COMPONENT='report2'
-*component_type report
TABLE FILE CAR
SUM 
     'CAR.BODY.SEATS'
     'CAR.BODY.DEALER_COST'
     'CAR.BODY.SALES'
BY 'CAR.COMP.CAR'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.CARREC.MODEL'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
     COLOR='BLUE',
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END
COMPOUND END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Francis. I just had "ORIENTATION=LANDSCAPE" in the wrong place. Seems to work now.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Silver Member
posted Hide Post
Hi Francis,
Your code is really helpful. However when i try to add a PageMaster (say to have page # ), then all the pages turns to be Portrait or Landscape. Do you know if this is still a Bug or is there any way to get around? Thanks much in advance.


Release : 7.7.02
OS : Linux
App Server : Tomcat
all output
 
Posts: 36 | Registered: February 03, 2011Report 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] Compound Portrait vs Landscape

Copyright © 1996-2020 Information Builders