PDA

View Full Version : Document Text with Tables


RoyChase
September 14, 2007, 11:05:23
I have a document with some tables that I am trying to convert to a text only version. The .text method of the document should do this but each column of the table is on a separate line.

e.g. a table thus

R1C1 R1C2 R1C3
R2C1 R2C2 R2C3

is converted to text thus

R1C1
R1C2
R1C3

R2C1
R2C2
R2C3

Ther is a CRLF after each column where I would expect there to be a TAB (or spaces).

Is there any way of preserving the lines of text so that the lines in the text output matches the lines in the orginal document.

Björn Meyer
September 14, 2007, 11:19:25
Hello Roy

Every table cell is a paragraph in fact. So, the way TX Text Control is exporting the table is absolutely correct. Inserting a tab or spaces would change the structure of the document.

In your case, you should convert the table to text in a pre process before exporting the document to ANSI text. Sample here for text to table:

http://www.textcontrol.com/downloads/library/tables/text2table/