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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Formatting in Excel
 Login/Join
 
<NIVAS>
posted
Hi all,
I am trying to count country in a sub-foot section.It works fine in HTML but not excel.Please help me with this

Here is the sample code by using car file


SET BYDISPLAY=ON
DEFINE FILE CAR
AMPER/A1 WITH COUNTRY = HEXBYT(38, AMPER);
SEMI/A1 WITH COUNTRY = HEXBYT(59, SEMI);
NBSP/A6 WITH COUNTRY = AMPER | 'nbsp' | SEMI;
GAP/A36 WITH COUNTRY = NBSP|NBSP|NBSP|NBSP|NBSP|NBSP;
END
TABLE FILE CAR
PRINT CAR RCOST DCOST
BY COUNTRY
ON COUNTRY SUBFOOT
"*TOTAL <ST.CNT.COUNTRY<GAP<GAP<GAP<GAP<GAP<GAP<ST.RCOST<GAP<GAP<GAP<GAP<ST.DCOST"
ON TABLE PCHOLD FORMAT EXL2K

END
 
Report This Post
Guru
posted Hide Post
Give this code a spin:

SET BYDISPLAY=ON
TABLE FILE CAR
PRINT CAR RCOST DCOST
BY COUNTRY
ON COUNTRY SUBFOOT
"*TOTAL<ST.CNT.COUNTRY<ST.RCOST<ST.DCOST"
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,LEFTMARGIN=0.000000,RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,BOTTOMMARGIN=0.000000,$
PAGESIZE='LETTER',ORIENTATION=PORTRAIT,$
TYPE=REPORT,GRID=OFF,SIZE=8,SQUEEZE=ON,FONT='ARIAL',$
TYPE=SUBFOOT,HEADALIGN=BODY,$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=2,JUSTIFY=RIGHT,STYLE=BOLD,$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=3,JUSTIFY=RIGHT,STYLE=BOLD,$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=4,JUSTIFY=RIGHT,STYLE=BOLD,$
ENDSTYLE
END

The headalign line is what does it this should work in html but you will not be able to use this in pdf format.

If you want to do this in pdf try the following:

SET BYDISPLAY=ON
TABLE FILE CAR
PRINT CAR RCOST DCOST
BY COUNTRY
ON COUNTRY SUBFOOT
"*TOTAL<ST.CNT.COUNTRY<ST.RCOST<ST.DCOST"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,LEFTMARGIN=0.000000,RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,BOTTOMMARGIN=0.000000,$
PAGESIZE='LETTER',ORIENTATION=PORTRAIT,$
TYPE=REPORT,GRID=OFF,SIZE=8,SQUEEZE=ON,FONT='ARIAL',$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=2,JUSTIFY=RIGHT,STYLE=BOLD,POSITION=P2,$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=3,JUSTIFY=RIGHT,STYLE=BOLD,POSITION=P3,$
TYPE=SUBFOOT,BY=1,LINE=1,ITEM=4,JUSTIFY=RIGHT,STYLE=BOLD,POSITION=P4,$
ENDSTYLE
END

Hope this helps.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders