I want to create a table and fill inn the header in bold and there after fill the rest of the table in non bold. CVI2013 and Word 14.0.7116.5000 (32 bit)
This is what I do.
WordRpt_SetTextAttribute(docHandle, WR_ATTR_FONT_SIZE, 12.0);
WordRpt_SetTextAttribute(docHandle, WR_ATTR_FONT_UNDERLINE,WRConst_FALSE);
WordRpt_SetTextAttribute(docHandle, WR_ATTR_FONT_BOLD, WRConst_TRUE);
WordRpt_SetTextAttribute(docHandle,WR_ATTR_TEXT_ALIGN,WRConst_AlignLeft);
WordRpt_AddTable(docHandle,2,7,&tableHandle);
WordRpt_AddTable(docHandle,2,7,&tableHandle);
filling in table header in bold by WordRpt_WriteToCell(tableHandle,1,1,"som text"); (column1,2,3....)
Then chainging to non bold by WordRpt_SetTextAttribute(docHandle, WR_ATTR_FONT_BOLD, WRConst_FALSE);
The filling row 2. The text remain bold
I have the same problem with WordRpt_SetTextAttribute(docHandle,WR_ATTR_TEXT_ALIGN,WRConst_AlignCenter);