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     [SOLVED] Squeeze PDF with COURIER - Not working Properly

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Squeeze PDF with COURIER - Not working Properly
 Login/Join
 
Guru
posted
I am facing a problem in SQUEEZE while using COURIER Font for my PDF Report.

Even though the Column shows enough space for the values to get displayed, The SQUEEZE gets applied on the Values instead of colun width.

This happens only with the Numiric that are converted to ALPHA numeric. Works fine with Numeric values.

Where in ARIAL doesnt create much problem in this area.

COURIER expects a bigger SQUEEZE number for Every column to show entire value, which makes me hard to align a 30 column report with in a 'A4' landscape page...

  
DEFINE FILE CAR
DEALER_COST/D10c = DEALER_COST;
DEALER_COSTMAL/A12= FTOA(DEALER_COST,'(D10c)','A10');
END

TABLE FILE CAR
PRINT
  DEALER_COSTMAL AS COURIER,DEAL
  DEALER_COSTMAL AS ARIAL,DEAL 
  DEALER_COSTMAL AS COUR,LESS,DEAL
  DEALER_COSTMAL AS ARIAL,LESS,DEAL 
  DEALER_COST AS COUR,NUM,DEAL

ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='A4',
     ORIENTATION=LANDSCAPE,$
TYPE=REPORT,
     GRID=OFF,
     SIZE=7,
     COLOR='BLACK',
     SQUEEZE=ON,
     BORDER=LIGHT,
     BORDER-COLOR=RGB(127 127 127),
$

TYPE=REPORT,     COLUMN=N1,    FONT='COURIER', SQUEEZE=.589111,COLOR=GREEN,$
TYPE=REPORT,     COLUMN=N2,    FONT='ARIAL',   SQUEEZE=0.419111,COLOR=BLUE, $
TYPE=REPORT,     COLUMN=N3,    FONT='COURIER', SQUEEZE=0.579111,COLOR=GREEN,$
TYPE=REPORT,     COLUMN=N4,    FONT='ARIAL',   SQUEEZE=0.419111,COLOR=BLUE,$
TYPE=REPORT,     COLUMN=N5,    FONT='COURIER', SQUEEZE=0.309111,COLOR=GREEN,$



ENDSTYLE
END
-RUN
-EXIT



Any suggestions on this is much welcome....

This message has been edited. Last edited by: Kerry,


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Virtuoso
posted Hide Post
Try your defined field as:
DEALER_COSTMAL/A14 = LJUST(14,FTOA(DEALER_COST,'(D10c)','A14'),'A14');
You have to take into account that FTOA will need extra positions to commas, dots and minus signs, plus that it stores the converted number right aligned - thereby sort of bypassing the squeeze option, which works only on right side trailing blank space.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
Thanks Gamp for the info.
I will try this.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
<FreSte>
posted
Or try your defined field as::

DEALER_COSTMAL/A12= SQUEEZ(12, FTOA(DEALER_COST,'(D10c)','A10'), 'A12');

and remove all the SQUEEZE= from your stylesheet

-Fred-
 
Report This Post
Guru
posted Hide Post
That worked Great...

Thanks Gamp and Freste.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report 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     [SOLVED] Squeeze PDF with COURIER - Not working Properly

Copyright © 1996-2020 Information Builders