开发者

remove unwanted space in header/footer

I'm currently writing a program in C# that prog开发者_如何学Gorammatically insert table in header/footer for MSWORD 2003.

My problem is after creation of table, there is unwanted space after the table. I have already manually fix or delete it using msword, but I cannot remove that extra space. Because of that the cursor was not start where the point of top margin is.

I've already google it but cannot find any solution. Any help will appreciate. Tnx


You can also set the Text Wrapping property of the table to AROUND instead of NONE. this will cause the following para mark to float to the right of the table, not below it, so you won't get the extra line, and you won't have to resort to 1 pt hacks (which work, but I try to avoid them when possible).

It's easy to do in Word manually, but A quick try at recording a macro to do it failed so I'm not sure of the Object Model method.


By default there is a new line after a table in MS Word. As a workaround you could try to set the font size after the table to 1.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜