Insert HTML table as "Text From File" - Row Height Too Large

T

TC134

Hello - I did a Google search on this and found a like to an
"ExpertsExchange.com" solution but I refuse to subscribe to that in order to
get an answer to this - I'll bet someone in this forum can help me out.

I've got an HTML document that contains a table - I insert it into Word 2007
using Insert > Object > Text from File. The rows all come up larger than
they should (seems like an extra line in every row). I played around with
CSS to try to force it but no luck. The document displays fine in a browser.

Does anyone know how to fix this?

Thanks!
 
T

TC134

Bump...can anybody please hook me up? I'm sure someone's seen this
before...please don't make me go to ExpertsExchange instead of a Microsoft
board to get an answer to a problem with MS Word. :)
 
C

Cindy M.

Hi =?Utf-8?B?VEMxMzQ=?=,
I've got an HTML document that contains a table - I insert it into Word 2007
using Insert > Object > Text from File. The rows all come up larger than
they should (seems like an extra line in every row). I played around with
CSS to try to force it but no luck. The document displays fine in a browser.
Do you have the display of non-printing characters activated? (The "Show/Hide",
"backwards "P" button in the Home tab of the Ribbon)

Are the rows "larger" (I assume you mean "higher") due to additional paragraph
marks following the text? (A paragraph mark is a "backwards P")

Or are they simply "higher" because an exact row height has been set? (You can
check that by clicking in the table, then going to the Table Layout tab that
appears in the Ribbon. Click the button to show the Properties, look in the Row
tab.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

TC134

Thanks for the reply Cindy!

Yes, I meant higher (taller). I turned on the display of non-printing
characters - there aren't any additional paragraph marks in the rows. Also,
an exact row height isn't set.

You should be able to see the same behavior I'm seeing if you create a
simple htm file containing this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<TABLE border="1">
<TR>
<TD>Test11</TD>
<TD>Test12</TD>
<TD>Test13</TD>
</TR>
<TR>
<TD>Test21</TD>
<TD>Test22</TD>
<TD>Test23</TD>
</TR>
</TABLE>
</BODY>
</HTML>

And then try to insert it into a Word document using Insert > Text from
File. All of the rows appear with what looks like an extra line below them.

Thanks,
John
 
C

Cindy M.

Hi John,
Yes, I meant higher (taller). I turned on the display of non-printing
characters - there aren't any additional paragraph marks in the rows. Also,
an exact row height isn't set.

You should be able to see the same behavior I'm seeing if you create a
simple htm file containing this:
Bless you for providing the HTML code :)

Yes, I see it, now. This is coming from Word 2007's Normal style definition,
which by default has "Space After" set to 10 pt. Word's HTML converter
apparently arbitrarily applies table formatting directly to the table, rather
than applying a table style. When you insert a table in Word 2007 a table style
is applied (installation default is "Table Grid", I believe).

If you were to change the definition of the Normal style to have no "Space
After" you'd get what you expect to see. Alternately, you could choose a table
style from the Table Tools/Design tab that will appear when you click in the
table.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

TC134

That worked perfectly Cindy!!! Thank you so much for the help! I knew I'd
find an answer here!

Take care,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top