Home > other >  C # write a word in the text color styles are different
C # write a word in the text color styles are different

Time:11-24


As is shown in
The console development write

CodePudding user response:

OLE smart Pointers, Office automation interface, effective for Office2010, but as I can't call the 2019 version of, have no the interface function,
 
Word: : _ApplicationPtr myApp;
Word: : DocumentsPtr spDocs;
Word: : _DocumentPtr _spdoc;
Word: : SelectionPtr spsel;
Word: : _FontPtr sFont.
Word: : ParagraphsPtr oParagraphs;
Word: : ParagraphPtr oParagraph;
Word: : InlineShapesPtr spshape;
Word: : ShapesPtr shapes;
Word: : _DocumentPtr activedoc;
Word: : RangePtr oTargetRange;
//according to the need to call the corresponding API function...
  • Related