It may depend on your output type. Can you get it to WRAP at the width of 5 characters?
June 15, 2005, 09:47 PM
Kamesh
WRAP wont work in HTML
June 15, 2005, 10:10 PM
reFOCUSing
Have you tried concatenating ascii value of 13 (carriage return) instead of ' ' (space)?
If you want more information check out this ascii table.
The WF function you will need is HEXBYT('13', 'A1');
June 16, 2005, 03:41 AM
Piipster
Is there any reason you aren't using the OVER command to print your two original fields?
June 16, 2005, 04:34 AM
Goldy
Hi,
I think following code may be helpful for you....
TABLE FILE GGSALES SUM UNITS OVER DOLLARS ACROSS CATEGORY ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, RIGHTMARGIN=0.250000, TOPMARGIN=0.250000, BOTTOMMARGIN=0.250000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $ ENDSTYLE END
Thanks & Regards, Goldy
June 16, 2005, 12:58 PM
Kamesh
I'm not using OVER because Field1 has to print on 1st line after that only Field2 has to print in each line.
When ever BY value changes, then Field1 has to print as 1st line and Field2 will follow with multiple lines.
June 16, 2005, 02:01 PM
reFOCUSing
Kamesh, If your output is HTML give this a try it works in WF 7.1.0 DEFINE FILE CAR CAR_COUNTRY/A40 = CAR || ' ' || COUNTRY; END -RUN TABLE FILE CAR PRINT CAR COUNTRY CAR_COUNTRY END -RUN[/code]This message has been edited. Last edited by: <Mabel>,
June 16, 2005, 02:38 PM
Kamesh
Hi CurtisA,
Your code works good for HTML. I'm using WRAP for PDF. This solves my problem. Thanks a lot.
-Kamesh
June 16, 2005, 06:49 PM
Kamesh
Like BR in html, is there anything else we can use in PDF other than WRAP.
June 16, 2005, 07:19 PM
reFOCUSing
Did you try adding the ascii character for a carriage return.
June 16, 2005, 08:01 PM
Kamesh
Yes, that didn't work.
June 16, 2005, 08:12 PM
dhagen
I just did the wrap in 5.33 with both html and pdf, and it worked fin.
TYPE=REPORT, COLUMN=N3, WRAP=0.541667,
You might have to play with the sizing (in inches) to get exactly what your looking for.
June 16, 2005, 08:20 PM
Kamesh
I'm not able to use the WRAP as my values are dynamic.
Field1 | ' ' | Field2
Output ------- Field1 Field2
Field1 will vary for each record.
June 16, 2005, 08:49 PM
dhagen
If the result set isn't too big, you can always use a sledge hammar and append two outputs together.
for example:
TABLE FILE CAR.MODEL PRINT COMPUTE C_SORT/I5 = 1; COMPUTE C_COL/A100 = WARRANTY; BY CAR BY MODEL WHERE COUNTRY EQ 'ENGLAND'; ON TABLE HOLD AS TT FORMAT ALPHA END
FILEDEF TT DISK TT.FTM (APPEND
TABLE FILE CAR PRINT COMPUTE C_SORT/I5 = 2; COMPUTE C_COL/A100 = BODYTYPE; BY CAR BY MODEL WHERE COUNTRY EQ 'ENGLAND'; ON TABLE HOLD AS TT FORMAT ALPHA END
TABLE FILE TT PRINT C_COL BY CAR BY MODEL BY C_SORT NOPRINT END
June 16, 2005, 08:59 PM
Kamesh
I can't do that...my report is complicated compound report...I can't change much now as already most of the testing is completed on that...