Word Document Table Borders
- This topic has 5 replies, 2 voices, and was last updated 10 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › WordprocessingML › Word Document Table Borders
Tagged: Word
Hi,
Specifying the font for a run is one of the more complex areas of Open XML WordprocessingML. There are four fonts specified for every run, and depending on the code block of the character, it uses one of the four fonts.
The easy solution is to set the same font for all four fonts, i.e. ascii, ansi, cs, eastAsia for your run with the symbol.
With regards to the borders disappearing, they may be too thin. Try making them thicker.
Cheers, Eric
Hello Eric,
I am sorry but I don’t follow your solution for the fonts.
so in my c# code after creating the RunProperties object I should have:
RunProperties runProperties = new RunProperties();
runProperties.runFonts.ascii = “Arial”;
runProperties.runFonts.ansi = “Arial”;
runProperties.runFonts.cs = “Arial”;
runProperties.runFonts.eastAsia = “Arial”;
Thanks again,
KSS
Never Mind, that is what I did, and got it working.
I just set Ascii, HighAnsi, ComplexScript, EastAsia.
Thanks,
KSS
Hello Eric,
With the table border, you are correct if I make the border value larger the border does show, but I am reading these border values from another file that I am using to create this word output.
Also if I open my document, go to the table properties for the row, the boarder is set to 1/2, so if I cancel the properties window then no border, but if I click save then I do see the boarder I can even choose 1/4 border and save it and I can see it.
Any ideas?
Thanks again,
KSS
You probably will need to tweak the widths of the borders – if they are too thin, then make them thicker. There probably is no other solution.
Cheers, Eric