Home > Back-end >  Can you tell me the the ole operation code word can not correctly aligned?
Can you tell me the the ole operation code word can not correctly aligned?

Time:09-22

Refer to the http://blog.csdn.net/kyfvc/article/details/8857943, I want to in front of the table to join, captions to align center:
. The initialization code
 the Variant vSelect=vWordApp. OlePropertyGet (" Selection "); 
VSelect. OlePropertyGet (" Font "). OlePropertySet (" Size ", 12);
VSelect. OlePropertyGet (" Font "). OlePropertySet (" Name ", "tahoma");
VSelect. OleProcedure (" TypeText ", WideString (title));
TypeParagraph vSelect. OleProcedure (" ");
VSelect. OleFunction (" Select ");
The Variant format=vSelect. OlePropertyGet (" ParagraphFormat ");

Format. OlePropertySet (" Alignment ", wdAlignParagraphCenter);

. The code that is inserted into the form, normal.
Insert the title no center but left-aligned
  • Related