If i use the following DXL:
void dbReleaseMe(DB box) {
hide(box)
destroy(box);
}
void testMe() {
string rtfString;
rtfString = "{\\rtf1\\ansi\\deff0
\\trowd
\\cellx1000
\\cellx2000
\\cellx3000
cell 1\\intbl\\cell
lots of text in cell two\\intbl\\cell
cell 3\\intbl\\cell
\\row
}";
DB box = centered("RTF Table Test");
bool readOnly = true;
DBE field1 = richText(box, "Table: ", richText(rtfString), 400, 200, readOnly);
close(box, false, dbReleaseMe);
show(box)
}
testMe();
[ ... ]
rtfString = "
{\\rtf1\\ansi\\deff0
\\trowd
\\cellx1000
\\cellx2000
\\cellx3000
cell 1\\intbl\\cell
lots of text in cell two\\intbl\\cell
cell 3\\intbl\\cell
\\row
}";
[ ... ]
peter_schaefer - Wed Mar 28 05:59:58 EDT 2012 |
Re: Woes with RTF tables When I insert "\\intbl\\cell" above "cell 1" in the code, "cell 1" appears in cell 2, text of 2 in 3, and text of 3 is missing. I'm guessing MS-Word or Office-2010 has some global setting about word-wrapping. As for your question, I'm pretty sure you can manipulate these codes to do what you want. When I deal with RTF tables, I just copy them from DOORS, paste and edit in MS-Word, then copy back when done. -Louie |
Re: Woes with RTF tables
The spec for RTF Tables is a mess!
rtfString = "{\\rtf1\\ansi\\deff0
\\trowd
\\cellx1000
\\cellx2000
\\cellx3000
\\intbl
cell 1\\cell
\\intbl
lots and lots and lots and lots of text in cell two\\cell
\\intbl
cell 3\\cell
\\row
}";
|