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] Freeform PDF Spacing Issues

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Freeform PDF Spacing Issues
 Login/Join
 
Gold member
posted
This report:

-SET &ECHO=ALL;



DEFINE FILE REFERTCM
	PIR_CITY       / A20 = 'Philadelphia';
	PIR_STATE      / A2 = 'PA';
	PIR_ZIP        / A5 = '19123';
END



TABLE FILE REFERTCM
PRINT MCID NOPRINT
WHERE RECORDLIMIT EQ 1
HEADING
"<PIR_CITY>, <PIR_STATE <PIR_ZIP"
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
$
TYPE=REPORT,
	TOPMARGIN=1,
	BOTTOMMARGIN=1,
$
TYPE=HEADING,
	WRAP=7,
$
ENDSTYLE
END

-EXIT


Give me some weird spacing issues. What is going on? I want the city-state-zip on the same line like normal but it gives me lots of extra spaces.

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


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008
 
Posts: 57 | Location: Philadelphia, PA | Registered: June 19, 2007Report This Post
Virtuoso
posted Hide Post
RicharA, HTML is getting in the way and we cannot see your code. Please post your sample code using
[code]
tags.



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
I changed it with the code tags.


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008
 
Posts: 57 | Location: Philadelphia, PA | Registered: June 19, 2007Report This Post
Virtuoso
posted Hide Post
quote:

TYPE=HEADING,
WRAP=7,
$


You're making every element in your HEADING wrap to 7 inches, which may explain the spacing you're seeing.


Try using WRAP or WIDTH on an element-by-element basis instead of a "global" HEADING setting as it will give you more control.

...
TYPE=HEADING, OBJECT=FIELD, ITEM=1, WRAP=1.5, $
...



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
That works but how can I get the trailing spaces after the city and before the comma? The trim command only works if you know the resulting length. I get something that looks like this right now:

Philadelphia          , PA 19123


And if I use the strong concatenation operator (||) to put it in a variable of length 30, it ends up looking like this:

Philadelphia,      PA 19123


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008
 
Posts: 57 | Location: Philadelphia, PA | Registered: June 19, 2007Report This Post
Guru
posted Hide Post
Try the Squeez function


PIR_CITY / A20 = 'Philadelphia'
SQCNAME/A20 = SQUEEZ(20, PIR_CITY, 'A20');


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Gold member
posted Hide Post
I think that will work. Thanks!


Sandbox Version: 8.1.04
Sandbox Platform: Windows 2008 R2
Testing Version: 7.7.02M
Testing Platform: Windows Server 2008 R2
WF Production Version: 7.7.02M
Production Platform: Windows Server 2008
 
Posts: 57 | Location: Philadelphia, PA | Registered: June 19, 2007Report 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] Freeform PDF Spacing Issues

Copyright © 1996-2020 Information Builders