Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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)
Go
New
Search
Notify
Tools
Reply
  
[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, 2009Reply With QuoteReport 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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6068 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport 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, 2007Reply With QuoteReport This Post
<JG>
posted
quote:
HTML tag <br>

Not in PDF Dan.
 
Reply With QuoteReport 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 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport 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, 2007Reply With QuoteReport 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, 2009Reply With QuoteReport 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, 2009Reply With QuoteReport 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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6068 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport 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, 2009Reply With QuoteReport 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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6068 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.