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] Creating newline for a field while printing to PDF(\n, newline)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Creating newline for a field while printing to PDF(\n, newline)
 Login/Join
 
Gold member
posted
Hi,

I have a field in database as RT|RG|VC is it possible to print that field in PDF as
RT
RG
VC
That is by replacing the pipe with a newline?

Thank you
Sakeesh

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


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Expert
posted Hide Post
There are many ways to to this.

I would suggest, if it works in your report, to change the | char for a space, and wrap the field to an appropriate width.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
You might try using MARKUP=ON in the StyleSheet and replace the pipe with HTML tag <br>.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
<JG>
posted
quote:
HTML tag <br>

Not in PDF Dan.
 
Report This Post
Virtuoso
posted Hide Post
quote:
Not in PDF

Also not with MARKUP=ON ? Correct me if I'm wrong please, but I thought that's what MARKUP is for, to propagate/translate html stuff into PDF..


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Sorry, I see now that Sakeesh is using WF version 5.2.5. MARKUP for PDF wasn't added until one of the 7.6 releases.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
with little searching I got this function CTRAN tried using it but instead of new line it is giving space, does anybody have any idea why

ALEN/I2 = LENV(SUN_TYPE,ALEN);
SUN_C/A40 = CTRAN(ALEN, SUN_TYPE,124, 10, SUN_C);

Below is the style sheet added

ON TABLE SET STYLE *
UNITS=PTS,
PAGESIZE='C',
LEFTMARGIN=100,
RIGHTMARGIN=30,
TOPMARGIN=10,
BOTTOMMARGIN=35,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
BORDER=LIGHT,
$
ENDSTYLE

could the issue be with style used?


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Gold member
posted Hide Post
got some more idea ... that was to use LINEBREAK in style sheet as below
TYPE=REPORT,
BORDER=LIGHT,
LINEBREAK='LF',
$

but this is giving error as
(FOC3209) UNKNOWN KEYWORD IN STYLESHEET FILE AT LINE: 1 LINEBREAK

Probably the version i am using doesn't support LINEBREAk. Does any one know the equivalent or any alternate command?


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Expert
posted Hide Post
One of the issues you have is the release of WebFOCUS. Version 5.2.5 is old and unsupported by IBI, Its "Functionally Stabilised".

There are many options that are not available to you.

If you have any documentation related to that release, please check it to see if the options you are trying exist.

You also have given us very little information on the report.

Perhaps if you could post your existing code, Master files, and expected output, we could suggest something that will work.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Waz,

Your initial suggestion to add space and wrap the field worked in PDF. For excel CTRAN(ALEN, SUN_TYPE,124, 10, SUN_C) worked.

Thank you
Sakeesh


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
 
Posts: 50 | Registered: August 04, 2009Report This Post
Expert
posted Hide Post
Sakeesh, glad to hear that you have solved your issue.

Please change your first post in this thread and add [SOLVED] to the title.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] Creating newline for a field while printing to PDF(\n, newline)

Copyright © 1996-2020 Information Builders