Width of tables in RTF export

General TRichView support forum. Please post your questions here
Post Reply
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Width of tables in RTF export

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me RVF file showing the problem.
martindholmes
Posts: 131
Joined: Mon Aug 29, 2005 12:03 pm

Post 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.
Post Reply