B
Brian Wong
Hi,
I am not sure rather I post in the right newgroup. If not, can anyone
tell me where I should post this question. Thanks.
I have trying to write a program in C# which extracts all the formatting
styles form a word document. However I got a problem with extracting paragpah
borders defined for a style. I have defined a style called "Note[Deanger]",
for this style, I have set the "Border Setting" to Box. When I run my
program, I use the following codes to extract the border style:
Word.Style style = wordDoc.Styles.Item("Note[Danger]");
border = style.Borders.Item(Word.WdBorderType.wdBorderTop);
the above code does return the correct border object to me, however, the
border does not contains any information about LineStyle, Color etc. Does
aynone know why it is like this? the Word.WdBorderType.wdBorderRight,
Word.WdBorderType.wdBorderLeft, Word.WdBorderType.wdBorderBottom all have the
same problem.
I am not sure rather I post in the right newgroup. If not, can anyone
tell me where I should post this question. Thanks.
I have trying to write a program in C# which extracts all the formatting
styles form a word document. However I got a problem with extracting paragpah
borders defined for a style. I have defined a style called "Note[Deanger]",
for this style, I have set the "Border Setting" to Box. When I run my
program, I use the following codes to extract the border style:
Word.Style style = wordDoc.Styles.Item("Note[Danger]");
border = style.Borders.Item(Word.WdBorderType.wdBorderTop);
the above code does return the correct border object to me, however, the
border does not contains any information about LineStyle, Color etc. Does
aynone know why it is like this? the Word.WdBorderType.wdBorderRight,
Word.WdBorderType.wdBorderLeft, Word.WdBorderType.wdBorderBottom all have the
same problem.