Donnerstag, 10. Januar 2008 17:23Hi,
I have a tablestyle and I'd like to use it with a table. The table doesn't have any formatting tag, it uses the style only (it is a restriction).
The first row of the table should look different than the other rows. To do this, I use the tblStylePr tag with the type of FirstRow. It works fine but here comes this problem that is so annoying.
Here is the code:
<w:style w:type='table' w:styleId='TblStyle1' xmlns:w='http://schemas.openxmlformats.org/wordprocessingml/2006/main'>
This code tells that the runs in the table should be bold but in the first row, the runs should look different and should NOT to be bold (because the runs are overriden by the last rPr, I suppose).
The modifications of the first row are working (the size of font etc.) but the italic and bold properties stay untouched. Can I mask them out somehow? (as I mentioned, I cannot use tblLook and other tag located in document.xml)
With this behaviour it looks like adding tblStylePr could only add plus properties (I have a pink shirt on and I put on a yellow hat and a red jacket , but the shirt is still on).
Montag, 14. Januar 2008 18:40No ideas at all?
More than 300 views and no posts, this means the problem is quite hard to solve. I reposted the problem at openxmldeveloper.org, maybe they will have something to suggest.
Donnerstag, 17. Januar 2008 21:31Well, well, well.
As I thought, solution was impossibly simple, especially for people who invented and developed OpenXML.
Thus, I have to set the bold value to '0' to override the previous rPr.