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     [CLOSED] Unwanted space in PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Unwanted space in PDF
 Login/Join
 
Platinum Member
posted
Hi

I am working on a complex report with lots of calculations and I am at the end trying to solve an issue. I am not so good with styling, need some help from you guys.

 
TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
PRINT SALES NOPRINT
ON COUNTRY SUBFOOT
"Sales: <ST.SALES    Sales rounded: <ST.SALES_RND"
ON TABLE PCHOLD FORMAT HTML
END

Sample in PDF:
Sales: 12000 Sales rounded:               12,000.00


My code is similar to this. If I run this report in HTML, everything is fine but in PDF, space shows up between text and actual number in the footing. this is because the format of the field is D20.2 and its creating all those spaces to make it up D20. How can I avoid those spaces in PDF? I cannot change the format of the field and I calculate subtotal directly in the footing using ST. prefix operator. Please let me know of any suggestions.

thank you..

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


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Gold member
posted Hide Post
You may have to have two sections in your report, one for HTML and the other for PDF.

I found pre-total the field, then convert it to alpha (FTOA) and left justify it with LJUST.

  
TABLE FILE CAR
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
COMPUTE RSALES_A/A30   = LJUST(30,FTOA(SALES_RND,'(D20.2)','A30'),'A30'); NOPRINT
BY COUNTRY
ON COUNTRY SUBFOOT
"Sales: <ST.SALES    Sales rounded: <RSALES_A "
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=SUBFOOT,
	 LINE=1,
	 OBJECT=FIELD,
	 ITEM=1,
	 JUSTIFY=LEFT,
$
TYPE=SUBFOOT,
	 LINE=1,
	 OBJECT=FIELD,
	 ITEM=2,
	 JUSTIFY=LEFT,
	 BACKCOLOR='YELLOW',
$
ENDSTYLE
END


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Platinum Member
posted Hide Post
Thanks for the reply Mary.
I am trying to eliminate the space by not converting it to alpha and not calculating the subtotal ahead


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
<JG>
posted
With HTML the rule is that HTML suppresses multiple spaces.
Unless you say ON TABLE SET SHOWBLANKS ON.
That’s the way HTML works.
PDF does not suppress multiple spaces.
Option is to set the width for the column in the style
 
Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by JG:
With HTML the rule is that HTML suppresses multiple spaces.
Unless you say ON TABLE SET SHOWBLANKS ON.
That’s the way HTML works.
PDF does not suppress multiple spaces.
Option is to set the width for the column in the style


Hi JG

I am trying this but does not seem to work.

 

TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
ON COUNTRY SUBFOOT
"Sales: <ST.SALES    Sales rounded: <ST.SALES_RND"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
         ITEM=1,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
ENDSTYLE
END
 


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
<JG>
posted
quote:
TYPE=SUBFOOT


you mean you want something like this

TYPE=SUBFOOT,ITEM=1,WIDTH=0.3000,JUSTIFY=LEFT,$
TYPE=SUBFOOT,ITEM=2,WIDTH=0.5000,JUSTIFY=LEFT,$
TYPE=SUBFOOT,ITEM=3,WIDTH=0.3000,JUSTIFY=LEFT,$
TYPE=SUBFOOT,ITEM=4,WIDTH=0.5000,JUSTIFY=LEFT,$
 
Report This Post
Gold member
posted Hide Post
Try this code:

 
TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
ON COUNTRY SUBFOOT
"<+0>Sales: <ST.SALES    <+0>Sales rounded: <ST.SALES_RND"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=1,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=2,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
ENDSTYLE
END


Its working fine........


WebFocus Version 7.7.05
Windows, HTML/PDF/EXL2K/AHTML
 
Posts: 63 | Registered: January 12, 2011Report This Post
Platinum Member
posted Hide Post
Hi Aravind

I still see the space.

Tank you..
quote:
Originally posted by SriAravind:
Try this code:

 
TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
ON COUNTRY SUBFOOT
"<+0>Sales: <ST.SALES    <+0>Sales rounded: <ST.SALES_RND"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=1,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=2,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
ENDSTYLE
END


Its working fine........


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Virtuoso
posted Hide Post
quote:
I am trying to eliminate the space by not converting it to alpha and not calculating the subtotal ahead


I don't think you can easily escape the conversion to alpha as Mary suggested ... you know that styling poses peculiar challenges.

However, you may not need to precalculate and carry a subtotal. Just do a RECAP before your subfoot, create an alpha field there with the subtotal calculation you need and use it in the SUBFOOT instead.

TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
PRINT SALES NOPRINT

ON COUNTRY RECAP
T_SALES_RND/A25 = SQUEEZ(25, FTOA(SALES_TH * 1000, '(D20.2)', T_SALES_RND), T_SALES_RND);

ON COUNTRY SUBFOOT
"Sales: <ST.SALES    Sales rounded: <T_SALES_RND>"
ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
TYPE=SUBFOOT, BY=COUNTRY, OBJECT=FIELD, ITEM=2, JUSTIFY=LEFT, COLOR=RED, $
ENDSTYLE
END



Caveat: you will lose the right alignment of those total values across the multiple created SUBFOOT's.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
This may be an issue with the version....I'm using 7.6.11 version and its working there....
Can someone check for other versions also????


quote:
Originally posted by BI_Developer:
Hi Aravind

I still see the space.

Tank you..
quote:
Originally posted by SriAravind:
Try this code:

 
TABLE FILE CAR
BY COUNTRY
SUM 
COMPUTE SALES_TH/D20.2 = SALES/1000; NOPRINT
COMPUTE SALES_RND/D20.2 = SALES_TH * 1000; NOPRINT
ON COUNTRY SUBFOOT
"<+0>Sales: <ST.SALES    <+0>Sales rounded: <ST.SALES_RND"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=8,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=1,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
TYPE=SUBFOOT,
     LINE=1,
	 OBJECT=FIELD,
     ITEM=2,
	 WIDTH=0.5000,
	 JUSTIFY=LEFT,
$
ENDSTYLE
END


Its working fine........

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


WebFocus Version 7.7.05
Windows, HTML/PDF/EXL2K/AHTML
 
Posts: 63 | Registered: January 12, 2011Report 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     [CLOSED] Unwanted space in PDF

Copyright © 1996-2020 Information Builders