4 Replies
Hi Tari,
Maybe it is a good idea to 'wrap' your headers yourself, by adding "\n" characters in your header strings, let's after each 30 or 40 characters.
It is of course a solution that has been been cobbled together, but when it works....
Success,
Ariene
Thanks everyone,
it seems there is no straight forward solution. I'll try to follow adding \n to the name as suggested by Ariene.
best regards,
tari
Good day,
I had the same problem, and adding "\n" did not work for me. The text would wrap, but the cell height would stay the same. I realise this an old post, but I would like to share my solution (ARIS 9.8.2).
By using the String.length() method I checked for strings longer than 15 characters containing spaces and split that into a String Array (In my case it was never more than 2 words, so you might have to add logic to only split at the second or third space if you have longer sentences). then I added the content like this:
var cellContentArr = []; var cellContent = objDef.Name(LNG) if (cellContent.length() > 15 && cellContent.indexOf(" ") != -1) { cellContentArr = cellContent.split(" "); } else { cellContentArr.push(cellContent) } output.DefineF("CELL_HEAD_UP", "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_BOLD | Constants.FMT_JUSTIFY | Constants.FMT_VERT_UP, 0, 0, 0, 0, 0, 1); output.TableCellF("", 12, "CELL_HEAD_UP"); for (var i=0; i<cellContentArr.length; i++) { output.OutputLnF(cellContentArr[i],"CELL_HEAD_UP"); }
Regards,
Kobus
Martin Miskovic on
Hi Tari,
can you post your code? Maybe you could make table in Excel instead. You can set wrap text there, but I am not sure about Word.
Regards,
Martin