Vertical Alignment in table cells

Nov 16, 2010 at 8:46 AM

Hi,

1. I want to align my text vertically in table cells. How can i do it ?

2. How can i disable row option "Allow row break across pages"?

thanks                  

Nov 16, 2010 at 1:30 PM

Hi nikigter,

Just uploaded a unofficial 'patch' for vertical alignment of table cells.

You can find a .zip file under 'Source Code' > 'Patches' > #7398.

Add the code in '_Enumerations_vAlign.txt' to '_Enumerations.cs'.
Add the code in 'Table_vAlign.txt' to 'Table.cs'.

Again, this is not an official patch, but you can give it a go if you want the vAlign functionality right away.
I can't provide any support on this. Use at own risk ;)

Kind regards,

Luuk Kuiper
Acsense Software
Netherlands

 

Coordinator
Nov 16, 2010 at 5:36 PM
nikigter,

1) I have incorporated lckuiper patch into the latest DocX source. If you download and build your own dll from the latest source, you will be able to set the VerticalAlignment of Cells.

Thank you lckuiper for this patch.

2) How can i disable row option "Allow row break across pages"?

I do not understand what you mean by this question. Can you please elaborate?

Cathal


Nov 17, 2010 at 7:45 AM

Hi lckuiper,

Thanks for the 'patch'. I have tested it and it works without problems. Just to mention i generate around 300 tables with images and text in one document.

About the second question:

In Microsoft Word there are  Options under Table properties...->Row. Is there any way the options to be manipulated with DocX? 

Nov 17, 2010 at 3:26 PM

Hi nikigter,

Good to hear it’s working.
I am not a developer for the DocX project, so I am unable to answer your question correctly (but I think it is not possible to manipulate all row properties, please check Table.cs).
What I do know is that row height can be set.

Luuk