Does any one know how to print the check mark symbol on a report. I can printed the currency symbol and copyright symbol, we now need the check mark symbolThis message has been edited. Last edited by: Kerry,
January 07, 2013, 11:27 AM
Francis Mariani
The check mark symbol is not available in normal character fonts, but it is in Wingdings 2. This works for HTML but not for PDF:
TABLE FILE CAR
PRINT
COUNTRY
COMPUTE CHECK1/A1 = 'P';
COMPUTE CHECK2/A1 = 'R';
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=CHECK1, FONT='Wingdings 2', $
TYPE=DATA, COLUMN=CHECK2, FONT='Wingdings 2', $
ENDSTYLE
-*ON TABLE PCHOLD FORMAT PDF
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 07, 2013, 12:28 PM
jlsnyc
thanks that worked fine, howerver we do need to work in PDF. Is there way to do it like the way the Copyright
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
January 08, 2013, 11:20 AM
DavSmith
Try this. Will work for PDF and HTML. You have to code for both. The stylesheet use of zapgfdingbats is ignored by HTML format and the COMPUTED use of Wingdings 2 is ignored by PDF format. EXL2K, AHTML, DHTML will also get a checkmark using the Wingdings 2 code.
-SET &FORMAT='PDF';
TABLE FILE CAR
SUM
COMPUTE CHECK/A70=IF '&FORMAT' EQ 'PDF'
THEN '3'
ELSE '<font size="4" color="GREEN" face="wingdings 2"> &|#80 </font>';
BY COUNTRY
ON TABLE PCHOLD FORMAT &FORMAT
ON TABLE SET STYLE *
TYPE=REPORT, GRID = OFF, SQUEEZE=ON,$
TYPE=DATA, COLUMN=N2,COLOR=BLUE,SIZE=15, FONT='zapfdingbats', $
ENDSTYLE
END
In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle
January 08, 2013, 11:25 AM
Prarie
Good one Dav
January 09, 2013, 04:15 AM
Nordin Ben Ahmed
Why don't you try this:
PRINT
COMPUTE imgsrc/A50V = IF T_REST_PLAN93 LE -1 THEN 'Close.png' ELSE IF T_REST_PLAN93 LE 30 THEN 'Ok.png' ELSE 'search_16.png'; NOPRINT COMPUTE IMG/A100V = ''; AS '' COMPUTE imgsrc1/A50V = 'Close.png'; NOPRINT COMPUTE IMG1/A100V = ''; NOPRINT COMPUTE imgsrc2/A50V = 'warning_16.png'; NOPRINT COMPUTE IMG2/A100V = ''; NOPRINT COMPUTE imgsrc3/A50V = 'Ok.png'; NOPRINT COMPUTE IMG3/A100V = ''; NOPRINT COMPUTE imgsrc4/A50V = 'search_16.png'; NOPRINT COMPUTE IMG4/A100V = ''; NOPRINT AS ''
As Symbol you can use any symbol you want. Just google for nice symbols. It works and you can be creative in presenting your report.
7.7.03 OS is Windows 7 We create al sorts of outputs depending on the demand, HTML (most cases), Excel (some cases) and PDF (some cases)
January 09, 2013, 09:22 AM
jlsnyc
quote:
Originally posted by DavSmith: Try this. Will work for PDF and HTML. You have to code for both. The stylesheet use of zapgfdingbats is ignored by HTML format and the COMPUTED use of Wingdings 2 is ignored by PDF format. EXL2K, AHTML, DHTML will also get a checkmark using the Wingdings 2 code.
Thanks the code works for us
January 09, 2013, 02:31 PM
DavSmith
J, my pleasure. I appreciate the feedback.
Hi Nordin, Nice suggestion. You are using image ".png" files to generate the checkmark. While it will work, there is certainly more effort in maintaining and modifying code when dealing with images. I try and avoid images whenever possible. Case in point, I can't see the images you attached as part of your code samples here. You may also want to delete 2 of your posts since you have 3 posts with the same info.
In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle
January 14, 2013, 05:34 AM
Nordin Ben Ahmed
quote:
Originally posted by DavSmith: J, my pleasure. I appreciate the feedback.
Hi Nordin, Nice suggestion. You are using image ".png" files to generate the checkmark. While it will work, there is certainly more effort in maintaining and modifying code when dealing with images. I try and avoid images whenever possible. Case in point, I can't see the images you attached as part of your code samples here. You may also want to delete 2 of your posts since you have 3 posts with the same info.
Thanx, I tried 2 edit the post so you don't have the "can't find image" symbol. But somehow ended having three posts.
About using images. The reason we use it because one, you can be very creative in what you display. Second you can choos HQ images instead of LQ featured symbols.
7.7.03 OS is Windows 7 We create al sorts of outputs depending on the demand, HTML (most cases), Excel (some cases) and PDF (some cases)