Page 1 of 1

Width of tables in RTF export

Posted: Tue Jul 03, 2007 12:25 pm
by martindholmes
Hi there,

I'm creating a Rich View document offscreen, in a TRichViewEdit control which is never visible. When I save this document to RTF, tables in the document appear to be saved at a width of 1.99" (at least, that's how they appear in OpenOffice Writer). I have table.BestWidth set to -100 (=100%), and I've set the BestWidth of each cell in the header row to be an even percentage of the table width, so the table should span the document, but it doesn't; it's all squashed up.

I notice in another post you said this:

"FYI: TRichView saves \cellx values so that saved tables have the same size as you can see on the screen (if the document is not formatted, tables are saved as if document width = 600 pixels)."

and I'm wondering if that's the source of the problem. Is there any way I can set the document width to be (say) 8 inches?

All help appreciated,
Martin

Posted: Tue Jul 03, 2007 4:42 pm
by Sergey Tkachenko
Please send me RVF file showing the problem.

Posted: Tue Jul 03, 2007 5:30 pm
by martindholmes
I seem to have solved the problem by explicitly setting the width of the offscreen TRichViewEdit to 600. It previously had no width setting at all; once I set it to 600, then the table does appear at 100% width in the document, which is fine.