Runtime created table change rows color

P

Polo

Hi, i've developed a VB.NET routine to draw a table in word. (50
columns x 15 rows)
after that, i set the shape of alternate colum with a color.
but after 15-20 colums the color change!

this is the routin to color the colunms

Dim Righe As Integer
Righe = Selection.Tables(1).Columns.Count - 1
For i = 1 To Righe
If i Mod 2 = 0 Then
With Selection.Tables(1).Columns(i)

.Shading.Texture = Word.WdTextureIndex.wdTexture50Percent
.Shading.ForegroundPatternColor = 33023
End With
End If
Next

at this point the color is ok!
but now i write text in every cell and after 20-30 columns the color in
background start changing.....i don't know why!

in a lot of cell the text is
Word.WdTextOrientation.wdTextOrientationUpward
and in other is Word.WdTextOrientation.wdTextOrientationHorizontal

Help please!
Ciao
Polo
 

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