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] superscript in HTML, EXL2K and PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] superscript in HTML, EXL2K and PDF
 Login/Join
 
Guru
posted
I'm trying to create a column title that has superscript. I have been able to get it to work for HTML but I cannot figure it out for EXL2K or PDF.

Here is what I did for HTML:
TABLE FILE CAR
PRINT
COUNTRY AS '5th'
END

I'm running WebFOCUS 5.2.6

This message has been edited. Last edited by: Kerry,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Guru
posted Hide Post
I haven't been able to find a solution for this. There is no option in a WebFOCUS style sheet to do superscript.

The closest I came was

-SET &N = HEXBYT('170', 'A1');
-SET &N2 = '2' | &N;
TABLE FILE CAR
PRINT
COUNTRY AS '&N2'
ON TABLE PCHOLD FORMAT PDF
END


This produces 2� in the column-title. It's based on codepage values representing special characters. The superscript a happens to be an available character. Unfortunatley, I haven't found codes for special characters for 'th', 'nd' or 'st'.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Gold member
posted Hide Post
quote:
-SET &N = HEXBYT('170', 'A1');
-SET &N2 = '2' | &N;


I ran this code on my WF developer studio local host(7.6.11), it procude a supperscript of little 'a'; same code move to our IBM mainframe server(7.6.11), it procude a different special symble at lower right.

I need code that can produce supperscript of little 'a' or 'b',.. or '1', '2', ... on minframe Server 7.6.7 or 7.6.11 for HTML, PDF and EXCEL. If you have any solution, really appreciated.


WebFOCUS 8.2.01 AppStudio
HTML, PDF, Excel
 
Posts: 61 | Registered: March 12, 2008Report This Post
Virtuoso
posted Hide Post
By using HTML tags <sup> and </sup>, you can trick WebFOCUS into producing superscripts in HTML and PDF. PDF format also requires the MARKUP=ON setting in the StyleSheet, which is ignored for HTML output. The approach is different for headings/footings and column titles because column titles are not checked for embedded field values by the code processor.

TABLE FILE CAR
 SUM SALES
 COMPUTE 1st/A15 = '1<sup>st</sup>'; NOPRINT
 BY COUNTRY AS 'Country'
 BY CAR     AS 'Car,(2<sup>nd</sup> column)'
 HEADING
  "This is the <1st  report"
  " "
 ON TABLE SET STYLE *
  TYPE=REPORT, MARKUP=ON, $
 ENDSTYLE
 ON TABLE PCHOLD FORMAT HTML
-* ON TABLE PCHOLD FORMAT PDF
END

I don't know of a way to directly produce superscripts for Excel output. The code below will accomplish the task, but requires a two-step process that involves opening output held in HTML format as an Excel spreadsheet.

TABLE FILE CAR
 SUM SALES
 COMPUTE 1st/A15 = '1<sup>st</sup>'; NOPRINT
 BY COUNTRY AS 'Country'
 BY CAR     AS 'Car,(2<sup>nd</sup> column)'
 HEADING
  "This is the <1st  report"
  " "
 ON TABLE HOLD FORMAT HTMTABLE
END

SET HTMLFORMTYPE=XLS
-RUN

-HTMLFORM BEGIN
!IBI.FIL.HOLD ;
-HTMLFORM END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
quote:
MARKUP=ON


Thanks for the tips. My Server is mainframe server, it seems not coorperated.
The ' ' tag and MARKUP=ON do show superscript on PDF column heading; but it mess up the alignment of next column heading(multiple lines heading), it also messup with SQUEEZE=ON command.

Does anyone have successful experience for superscript on PDF/EXCEL coulmn heading on mainframe?


WebFOCUS 8.2.01 AppStudio
HTML, PDF, Excel
 
Posts: 61 | Registered: March 12, 2008Report 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] superscript in HTML, EXL2K and PDF

Copyright © 1996-2020 Information Builders