P
Philip J. fry
Hi All!
I have a very simple Rich Text File which displays
differently in RichTextBox control [loaded by LoadFile
("test.rtf", RichTextBoxStreamType.RichText)], and MS
Word. Is it possible to get the same appearance as in MS
Word?
In the case that someone would like to try, I put the
content of test.rtf at the bottom of this message. MS
Word displays it as a table with two rows and one column.
The second row is three times wider than the first one.
In the RichTextBox control, second row is as wide as the
first one, i.e., the text inside the table is not
formatted properly (it goes out of the bottom cell.
Any help would be greatly appreciated,
Phil
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0
\froman\fprq2\fcharset0 Times New Roman;}{\f1
\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\trowd\trgaph108\trleft-108
\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10
\trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10
\clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15
\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs
\cellx720\pard\intbl\f0\fs24 A\cell\row
\intbl AAAAAAAAA\cell\row
\pard\f1\fs17\par
}
I have a very simple Rich Text File which displays
differently in RichTextBox control [loaded by LoadFile
("test.rtf", RichTextBoxStreamType.RichText)], and MS
Word. Is it possible to get the same appearance as in MS
Word?
In the case that someone would like to try, I put the
content of test.rtf at the bottom of this message. MS
Word displays it as a table with two rows and one column.
The second row is three times wider than the first one.
In the RichTextBox control, second row is as wide as the
first one, i.e., the text inside the table is not
formatted properly (it goes out of the bottom cell.
Any help would be greatly appreciated,
Phil
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0
\froman\fprq2\fcharset0 Times New Roman;}{\f1
\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\trowd\trgaph108\trleft-108
\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10
\trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10
\clbrdrt\brdrw15\brdrs\clbrdrl\brdrw15
\brdrs\clbrdrb\brdrw15\brdrs\clbrdrr\brdrw15\brdrs
\cellx720\pard\intbl\f0\fs24 A\cell\row
\intbl AAAAAAAAA\cell\row
\pard\f1\fs17\par
}