trichview.com

trichview.support




Re: Print preview outisde margins with tables in rich view doc


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/29/2004 18:35:51


It's not always possible to import MS Word tables exactly as they are shown

in MS Word.

TRichView's model of tables is more like HTML model, so conversion may lose

some information.


You can set tables' BestWidth to -100 (100%). It can be done in trichview or

in MS Word.

This will fix the problems with width.

Also you need to set the proper TRVPrint's margins and paper size.


As for the height of the tables, it's more problematic.

First, tables are taller because of cell padding.

In trichview cell padding is the same for left, top, right and bottom sides

of cells.

In MS Word they all can be different. Usually (like in your document)

horizontal padding is not zero, but vertical one is zero.

When importing, trichview calculates the mean value and use it as a cell

padding.

What's why imported tables are taller than in MS Word.

Probably in future trichview will have separate properties for vertical and

horizontal cell paddings.


The second reason why tables are taller is border width.

In MS Word, borders for different cells can have different width. Zero-width

border have no width.

In trichview, all cell borders have the same width (it's possible to have a

table border different from cells borders, but all cell borders are

identical).

When you hide some side of border, it still has width (the same as if it was

not hidden)


So, if you need to print this table on one page

- set table.CellSpacing to 0;

- reduce table.CellBorderWidth


>

> I have a program using trichviewedit and print preview.  A particular

document

> I want to display is showing up oddly in the edit window and in the print

> preview.

>

> The document has tables in it, and I am sure that is the source of the

problem,

> but have been unable to figure out how to either change the document so it

> will display or to change my trichview program to allow it to display.

>

> I put up the document and screen shots from 3 print preview sources here:

> http://www.monkeytroy.com/rv/rv.html

>

> Any help would be appreciated, even if its just so that I know how the

document

> can be edited to work correctly.

>

> Fred





Powered by ABC Amber Outlook Express Converter