Hello hamsti,
You can change the alignment of a paragraph in Word by using the SetProperty function in the Microsoft Word Object Library. In particular, if you insert the following code before adding data to the table, the table contents should be centered:
Word_GetProperty (currSelHandle, NULL, Word_SelectionParagraphFormat, CAVT_OBJHANDLE, &pgrphFmtHandle));
Word_SetProperty (pgrphFmtHandle, NULL, Word_ParagraphFmtAlignment, CAVT_LONG, WordConst_wdAlignParagraphCenter));
I tried this with the word200demo example. I would suggest opening the word2000demo shipping example located at ...\National Instruments\CVI71\samples\activex\word\word2000demo.cws and adding the above code to the AddTableToDoc callback function after the comment "Fill in the column titles".
You should see the desired results. Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter