Table dinitions change when loaded/saved form DB

  • I have a form with a WPEditor which I use to edit a rtf which is later inserted into another rtf. Using the WPEdfitor, I insert a table with width set to 100%. I save the rtf as text to a field of the DB.

    The field in DB contains ...{\tblstart1{....\trftsWidth2\trwWidth5000 which exactly makes the table stretch to the whole width of the doc.

    However, if I reload the rtf from the database into the WPEditor, the \trftsWidth2 is changed to \trftsWidth3\trwWidth6806.

    So after the second edit/save, the table no longer streches over the width of the doc.

    What am I mising?

    tx + brgds bernd

    • Offizieller Beitrag

    Do you use FormatOptionsEx: wpfKeepTablesInTextArea

    Maybe it is just, that your document defines margins which You do not see in Normal view Mode. Header.SetPageWH can be used to set thge margins to 0.

    You can also use the formatoption -IgnorePageSize' to avoid loading page sizes from the database so the current is used.