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     [CLOSED] PDF Compound Report with different page sizes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] PDF Compound Report with different page sizes
 Login/Join
 
Member
posted
Hi All,

I have to develop a compound report in PDF format, which have two sets of information:
1. Details by Product
2. Details by Category

I have to print Details by Product in LETTER page, whereas Summary by Category needs to print on LEGAL page.

I am trying with below code, but I am getting both reports on LEGAL page. Note: Below code is for DEMO purpose. I can't share actual code due to security reasons.

-------------------- Code Start -------------------------------------------------------------------------
  

-SET &RPT_TITLE  = 'INDEPENDENT REPAIR FACILITIES (IRF)';
-SET &RPT_TITLE2  = 'EXCEPTION LETTER RECAP';
-SET &WFFMT = 'PDF';
-SET &ITEM1WIDTH = 2;
-SET &ITEM2WIDTH = 6.8;
-SET &ITEM3WIDTH = 1;
-SET &ITEM4WIDTH = 1;
-SET &ORIENT      = 'LXX';


TABLE FILE GGSALES
PRINT
	UNITS/D11C AS 'TOTAL UNIT SALES' 
	DOLLARS/D11.2CM AS 'TOTAL DALLAR SALES' 
	BUDUNITS/D11C AS 'TOTAL BUDGET UNITS' 
	BUDDOLLARS/D11.2CM AS 'TOTAL BUDGET DOLLARS' 
BY PRODUCT  
HEADING
" <+0>ABC COMPANY<+0>"
" <+0>&RPT_TITLE<+0>"
" <+0>&RPT_TITLE2<+0>"

FOOTING BOTTOM
" "
" <+0>ABC Company Confidentials <+0> "
" "

ON TABLE PCHOLD FORMAT &WFFMT OPEN
ON TABLE SET PAGE NOLEAD
ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLESHEET *
UNITS=IN, PAGESIZE='LETTER', ORIENTATION='LANDSCAPE',
     LEFTMARGIN=0.152778, RIGHTMARGIN=0.055556, TOPMARGIN=0.250000, BOTTOMMARGIN=0.00000,
     SQUEEZE=ON, BOTTOMGAP=0, TOPGAP=0, $

TYPE=REPORT, FONT='VERDANA', SIZE=7, COLOR='BLACK', STYLE=NORMAL, GRID=OFF, $

TYPE=TITLE,  SIZE=9, JUSTIFY=CENTER,
     COLOR='WHITE', BACKCOLOR=RGB(179 35 24), STYLE=-UNDERLINE+BOLD,
     BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(179 35 24), BORDER-BOTTOM-COLOR=RGB(179 35 24),
     BORDER-LEFT-COLOR=RGB(179 35 24), BORDER-RIGHT-COLOR=RGB(179 35 24),
     BOTTOMGAP=0.05, TOPGAP=0.05, $

TYPE=HEADING,   SIZE=10, BORDER-BOTTOM=LIGHT, BORDER-BOTTOM-COLOR=RGB(179 35 24),  $
TYPE=HEADING,   LINE=1,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=1,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=1,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=1,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=2,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=2,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=2,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=2,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=3,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=3,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=3,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=3,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $

TYPE=FOOTING,   SIZE=9, BORDER-TOP=LIGHT, BORDER-TOP-COLOR=RGB(179 35 24),  $
TYPE=FOOTING,   LINE=1,  COLSPAN=12, $
TYPE=FOOTING,   LINE=2,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=FOOTING,   LINE=2,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=FOOTING,   LINE=2,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=FOOTING,   LINE=2,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $

TYPE=DATA, STYLE=NORMAL, $
ENDSTYLE
END

TABLE FILE GGSALES
SUM
	UNITS/D11C AS 'TOTAL UNIT SALES' 
	DOLLARS/D11.2CM AS 'TOTAL DALLAR SALES' 
	BUDUNITS/D11C AS 'TOTAL BUDGET UNITS' 
	BUDDOLLARS/D11.2CM AS 'TOTAL BUDGET DOLLARS' 
BY CATEGORY 

HEADING
" <+0>ABC COMPANY<+0>"
" <+0>&RPT_TITLE<+0>"
" <+0>&RPT_TITLE2<+0>"

FOOTING BOTTOM
" "
" <+0>ABC Company Confidentials <+0> "
" "

ON TABLE PCHOLD FORMAT &WFFMT CLOSE
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
UNITS=IN, PAGESIZE='LEGAL', ORIENTATION='LANDSCAPE',
     LEFTMARGIN=0.152778, RIGHTMARGIN=0.055556, TOPMARGIN=0.250000, BOTTOMMARGIN=0.00000,
     SQUEEZE=ON, BOTTOMGAP=0, TOPGAP=0, $

TYPE=REPORT, FONT='VERDANA', SIZE=7, COLOR='BLACK', STYLE=NORMAL, GRID=OFF, $

TYPE=TITLE,  SIZE=9, JUSTIFY=CENTER,
     COLOR='WHITE', BACKCOLOR=RGB(179 35 24), STYLE=-UNDERLINE+BOLD,
     BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
     BORDER-TOP-COLOR=RGB(179 35 24), BORDER-BOTTOM-COLOR=RGB(179 35 24),
     BORDER-LEFT-COLOR=RGB(179 35 24), BORDER-RIGHT-COLOR=RGB(179 35 24),
     BOTTOMGAP=0.05, TOPGAP=0.05, $

TYPE=HEADING,   SIZE=10, BORDER-BOTTOM=LIGHT, BORDER-BOTTOM-COLOR=RGB(179 35 24),  $
TYPE=HEADING,   LINE=1,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=1,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=1,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=1,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=2,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=2,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=2,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=2,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=3,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=HEADING,   LINE=3,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=HEADING,   LINE=3,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=HEADING,   LINE=3,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $

TYPE=FOOTING,   SIZE=9, BORDER-TOP=LIGHT, BORDER-TOP-COLOR=RGB(179 35 24),  $
TYPE=FOOTING,   LINE=1,  COLSPAN=12, $
TYPE=FOOTING,   LINE=2,  ITEM=1,  JUSTIFY=LEFT,    WIDTH=&ITEM1WIDTH.EVAL,  $
TYPE=FOOTING,   LINE=2,  ITEM=2,  JUSTIFY=CENTER,  WIDTH=&ITEM2WIDTH.EVAL,  COLOR=RGB(179 35 24), $
TYPE=FOOTING,   LINE=2,  ITEM=3,  JUSTIFY=RIGHT,   WIDTH=&ITEM3WIDTH.EVAL,  $
TYPE=FOOTING,   LINE=2,  ITEM=4,  JUSTIFY=LEFT,    WIDTH=&ITEM4WIDTH.EVAL,  COLOR=RGB(179 35 24), $

TYPE=DATA, STYLE=NORMAL, $

ENDSTYLE
END


-------------------- Code End -------------------------------------------------------------------------

Output: 1. Details by Product




Output: 2. Details by Category




Please let me know, how can i achieve my requirement. Thanks in Advance.

Regards,
Sandy Sagar

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 25 | Registered: September 15, 2014Report This Post
Virtuoso
posted Hide Post
I believe the document has its own orientation and layout which apply to both reports. I just tried something like your example and in the top of the document this is what I see:

 COMPOUND LAYOUT PCHOLD FORMAT PDF
SECTION=Section_1, LAYOUT=ON, PAGESIZE=LEGAL, ORIENTATION=LANDSCAPE, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page 1', TEXT='Page 1', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=TableChart_1, COMPONENT-TYPE=REPORT, POSITION=(0.520833 0.4375), DIMENSION=(* *), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0;WIDTH:4.0;HEIGHT:3.0;LEFT:0.520833;TOP:0.4375', $
COMPONENT=TableChart_2, COMPONENT-TYPE=REPORT, POSITION=(0.291666 3.739583), DIMENSION=(* *), ARREPORTSIZE=DIMENSION, METADATA='VERSION:1.0;WIDTH:4.0;HEIGHT:3.0;LEFT:0.291666;TOP:3.739583', $
END 


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
Hi sandy2sagar,

I don't think that 7.6 will support two different page sizes.

I do remember using a third part tool to combine two reports with different page sizes to get the desire result.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Hi Waz,

I am trying this in WebFOCUS 8.105M version. And I don't want to use third party tool for merging two separate reports. I need only one report contains both sub-reports.

Regards,
Sandy


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 25 | Registered: September 15, 2014Report This Post
Expert
posted Hide Post
I would suggest trying the compound layout.

If you are on 8.1.05 (Your signature states 7.6), then you could try creating two sections one for legal and one for letter.

Perhaps using the compound layout tool may help.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CLOSED] PDF Compound Report with different page sizes

Copyright © 1996-2020 Information Builders