Focal Point
[CLOSED] Wrapping in the same cell in excel 2007

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8487041346

December 23, 2013, 02:41 PM
Steve Lindsay
[CLOSED] Wrapping in the same cell in excel 2007
My report is being generated in excel 2007. I have a column that has variable text and I would like it to wrap in one cell. I clicked on the wrap option and it shows up in two rows the first one in row 1 and the rest of message in the second row. How do get I all in the same cell?

Steve

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0
December 23, 2013, 11:21 PM
Rifaz
Hi Steve,

If below code is not what you expected, please post your sample code. Replace EXL2K with EXL07 if you have Office 2007.

TABLE FILE CAR
PRINT CAR MODEL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
TYPE=REPORT,COLUMN=MODEL,WRAP=0.6,$
ENDSTYLE
END  


Thanks,
Rifaz


-Rifaz

WebFOCUS 7.7.x and 8.x
December 26, 2013, 09:55 AM
Steve Lindsay
Here is my code. It wraps for EXL00 but Not for EXL07.


TABLE FILE CAR
PRINT
CAR.COMP.CAR
CAR.CARREC.MODEL
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET STYLE *
$
TYPE=REPORT,
COLUMN=N2,
WRAP=0.583333,
$
ENDSTYLE
END

I get the information but the second column does not wrap.


WebFOCUS 8.0
December 27, 2013, 01:10 AM
Rifaz
Hmm... Try this, I'm not sure, this workaround helps to you.

DEFINE FILE CAR
breakdata/A6 = HEXBYT(13,'A1')||HEXBYT(10,'A1');
wrapdata/A30 = EDIT(MODEL,'9999$$$$$$')||breakdata||EDIT(MODEL,'$$$$9999999999999999999');
END
TABLE FILE CAR
PRINT CAR MODEL wrapdata
ON TABLE PCHOLD FORMAT EXL2K
END  

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


-Rifaz

WebFOCUS 7.7.x and 8.x