Focal Point
[SOLVED] Creating newline for a field while printing to PDF(\n, newline)
October 07, 2010, 10:19 PM
MKS[SOLVED] Creating newline for a field while printing to PDF(\n, newline)
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
October 07, 2010, 10:27 PM
WazThere 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.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
October 08, 2010, 01:46 AM
Dan SatchellYou might try using MARKUP=ON in the StyleSheet and replace the pipe with HTML tag <br>.
WebFOCUS 7.7.05
October 08, 2010, 02:15 AM
<JG>quote:
HTML tag <br>
Not in PDF Dan.
October 08, 2010, 02:34 AM
GamPquote:
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 |
October 08, 2010, 03:24 AM
Dan SatchellSorry, 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
October 08, 2010, 05:03 AM
MKSwith 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
October 08, 2010, 07:17 AM
MKSgot 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
October 10, 2010, 03:40 PM
WazOne 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.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
October 18, 2010, 03:40 AM
MKSWaz,
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
October 18, 2010, 04:29 PM
WazSakeesh, 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.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |