how is it possible to have the delta distinct symbol ∆ in a column title of a WebFOCUS Report with output for PDF.
UdoThis message has been edited. Last edited by: <Emily McAllister>,
If its in a font that is available to PDF, then it can be done.
Is it with other text ?
COMPUTE Difference/D12.2 = Sales_June - Sales_May; AS '∆ 05 - 06'
in the fex I can code that, but after execution instead of ∆ a ? is shown in column title.
Thanks for your help
You can try to save that symbol as image file and call it from the DEFINE or COMPUTE field.
As of now i do not have any codes for that.
But i guess it will give some good result.
WebFOCUS 8.0.05 - BI Portal, Developer Studio, Dev/App Studio, Excel, PDF, Active Formats and HTML5, Adobe Flex Builder, VBA
I suspect some step (either while storing the fex file, or while reading it and stuffing it into FOCSTACK at run time) is mapping the source code onto a domain of just 256 bit combinations; the Greeks (in UNICODE source) get left out in the cold.
If my conjecture is right, styling will be of no help - by the time styling gets applied, ∆ is nowhere in sight.
I had a similar issue a while back, and was able to solve it only by breaking the text into multiple fields, styling the one to contain the delta using some wingding font, and stuffing the field with a plain old alpha character (in my source) that renders as ∆ under that font. -- But that idea cannot be applied to column-headings.
- Jack Gross
WF through 8.1.05
You can achieve this in the main 3 output formats by setting the title font to symbol -
-SET &Delta = HEXBYT(68,'A1'); TABLE FILE GGSALES SUM DOLLARS COMPUTE Difference/D20.2 = BUDDOLLARS - DOLLARS; AS '&Delta 05 - 06' BY STCD ON TABLE PCHOLD FORMAT '&WFFMT.(HTML,PDF,EXL07).Format.' ON TABLE SET PAGE NOLEAD ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * grid=off, size=10, $ type=title, column=N3, font=Symbol, $ ENDSTYLE END -RUN
Before anyone decides to point out that you could also use 'D 05 - 06' in this case, Yes, I know but this gives you an idea if you want use alternative symbols.
Just make sure that the font that you choose to use will correctly render all the characters that you need in the title!
Hey Tony, I get the delta symbol in PDF but HTML doesn't render in Chrome. When I try it in ie it shows the Delta. How do I check to see if the font is available in the browser?
WebFOCUS 8206, Unix, Windows
- Jack Gross
WF through 8.1.05
Here is another interesting way to set the font in the title.
An extension of what Tony posted.
TABLE FILE GGSALES SUM DOLLARS COMPUTE Difference/D20.2 = BUDDOLLARS - DOLLARS; AS '<font face="symbol">D</font> <font face="Helvetica">A</font><font face="Palatino Linotype">B</font><font face="Impact">C</font><font face="Georgia">D</font>' BY STCD ON TABLE PCHOLD FORMAT '&WFFMT.(HTML,PDF,EXL07).Format.' ON TABLE SET PAGE NOLEAD ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * grid=off, size=10, $ -* type=title, column=N3, font=Symbol, $ MARKUP=ON, $ ENDSTYLE END -RUN
But does have issue with HTML and Excel
Thank you Waz.
The font markup, within the column heading text, worked perfectly for me.
Hi all, thank you for the good tips. Now it works fine. best regards Udo
|Powered by Social Strata|