Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

word reports bold text on/off in tables

$
0
0

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);


Viewing all articles
Browse latest Browse all 5357


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>