Focal Point
[CLOSED] Spacing issue when displaying ascii characters and Superscript in PDF

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6347004296

January 23, 2020, 11:22 AM
kiron
[CLOSED] Spacing issue when displaying ascii characters and Superscript in PDF
Hi,
I am trying to display Copyright symbol and a Superscript on the same line in a PDF report. when i run the code these are displayed with additional spacing. Is there a way or command to supress this additional spacing around the super Script value.

TABLE FILE CAR
PRINT
CAR NOPRINT
COMPUTE REG_TDMRK/A1= HEXBYT(174, 'A1');NOPRINT
COMPUTE COL1/A100 = 'REGISTERED TRADE MARK' || REG_TDMRK | ' SUPERSCRIPTAB TESTING';
COMPUTE COL2/A100 = 'REGISTERED TRADE MARK' | ' SUPERSCRIPTAB TESTING';
WHERE READLIMIT EQ 10

ON TABLE SET DROPBLNKLINE HEADING
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
$
TYPE=REPORT,FONT='ARIAL', COLOR=BLACK,STYLE=NORMAL,BORDER-LEFT=OFF,BORDER-RIGHT=OFF,
SIZE=9,BOTTOMGAP=0.023,TOPGAP=0.023,SQUEEZE=ON,$
TYPE=REPORT,COLUMN=P1,WRAP=4,MARKUP=ON,$
TYPE=REPORT,COLUMN=P2,WRAP=4,MARKUP=ON,$
ENDSTYLE
END
Thanks
Kiran

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2/Linux
January 23, 2020, 02:45 PM
pav
Hello,
Try this out,
TABLE FILE CAR
PRINT
CAR NOPRINT

COMPUTE REG_TDMRK/A1= HEXBYT(169, 'A1');NOPRINT
COMPUTE COL1/A100 =  'REGISTERED TRADE MARK'|REG_TDMRK | ' SUPERSCRIPT<sup>AB</sup> TESTING';
-*COMPUTE COL2/A100 = 'REGISTERED TRADE MARK' | ' SUPERSCRIPTAB TESTING';
WHERE READLIMIT EQ 10

ON TABLE SET DROPBLNKLINE HEADING
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
$
TYPE=REPORT,FONT='ARIAL', COLOR=BLACK,STYLE=NORMAL,BORDER-LEFT=OFF,BORDER-RIGHT=OFF,
SIZE=9,BOTTOMGAP=0.023,TOPGAP=0.023,SQUEEZE=ON,MARKUP=ON,$
TYPE=REPORT,COLUMN=P1,WRAP=4,$
TYPE=REPORT,COLUMN=P2,WRAP=4,$
ENDSTYLE
END


January 23, 2020, 04:38 PM
kiron
Hi Pav,
I still see the issue.


WebFOCUS 8.2/Linux
January 24, 2020, 10:29 AM
pav
Kiron,

could you please send out the image of the output or a just the result screenshot. I don't see any spacing issue.
January 24, 2020, 02:43 PM
kiron
TABLE FILE CAR
PRINT
CAR NOPRINT
COMPUTE REG_TDMRK/A1= HEXBYT(174, 'A1');NOPRINT
COMPUTE COL1/A100 = 'TRADE MARK' | REG_TDMRK | ' SUPERSCRIPT<sup>AB</sup> TESTING' ;
COMPUTE COL2/A100 = 'TRADE MARK' | ' SUPERSCRIPT<sup>AB</sup> TESTING';
WHERE READLIMIT EQ 2
ON TABLE SET DROPBLNKLINE HEADING
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
$
TYPE=REPORT,FONT='ARIAL', COLOR=BLACK,STYLE=NORMAL,BORDER-LEFT=OFF,BORDER-RIGHT=OFF,
SIZE=9,BOTTOMGAP=0.023,TOPGAP=0.023,SQUEEZE=ON,$
TYPE=REPORT,COLUMN=P1,WRAP=3,MARKUP=ON,$
TYPE=REPORT,COLUMN=P2,WRAP=3,MARKUP=ON,$
ENDSTYLE
END

I could not attach the Output Image so pasting the PDF output Data.

OUTPUT

COL1 COL2
TRADE MARKĀ® SUPERSCRIPT AB TESTING TRADE MARK SUPERSCRIPTAB TESTING

its addding a space between (SUPERSCRIPT AB) in COL1 where as there is no space in COL2.


WebFOCUS 8.2/Linux
January 24, 2020, 03:48 PM
pav
I ran your code and I did't any spacing problem with superscript AB in COL1.

I am using 8.1.05 App Stdio, I can see you are using 8.2 App Studio.

It's better if someone can help us.

Thank You.
January 29, 2020, 08:26 AM
Lisa Lindquist
You have an extra space between the apostrophe and SUPERSCRIPTAB TESTING in col1. Remove the space.
COMPUTE COL1/A100 = 'REGISTERED TRADE MARK' || REG_TDMRK | 'SUPERSCRIPTAB TESTING';
I misunderstood your initial question.

I did run the code PAV provided and I don't see any additional spacing issues in Col1 from Col2, using WebFOCUS 8.2.

This message has been edited. Last edited by: Lisa Lindquist,