I’m seeing behavior that suggests the integer values defined by com.aspose.words.VerticalAlignment are not matching with the correct behavior. Specifically:
I have created simple code to try to reproduce the issue described by you with the latest release Aspose.Words for Java 4.0.3 from 10/14/2010. The issue has not been reproduced.
May I ask you to provide me with the following information:
the version of jdk you use
code fragment where you use VerticalAligment without success
Thank you for your troubleshooting efforts. Hopefully some additional info will help. I have attached 3 screenshots taken from the resulting Word document that show the cell formatting in question.
Also, here is the section of code that writes the white-background cells:
The commented-out lines were used to generate the attached screenshots. (the image filename indicates which alignment value was used to generate it) I also stepped through the code with a debugger a noted the following values in case this is helpful information:
Hi
Thank you for additional information. You should just use CellVerticalAlignment instead of VerticalAlignment: https://reference.aspose.com/words/java/com.aspose.words/cellformat#VerticalAlignment
VerticalAlignment specifies vertical alignment of a floating shape, text frame or a floating table, but not vertical alignment in table cell.
Best regards,