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.6This message has been edited. Last edited by: Kerry,
October 05, 2004, 05:26 AM
Piipster
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'.
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
September 29, 2010, 01:39 AM
Dan Satchell
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
September 29, 2010, 10:42 AM
Emily Lee
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?