c# - InlineShape.ConvertToShape().WrapFormat.Type=WdWrapType.wdWrapInline; It doesn't work -


this code:

        object nothing = system.reflection.missing.value;         object filename = fileaddr;         microsoft.office.interop.word.application wordapp = new microsoft.office.interop.word.applicationclass();         microsoft.office.interop.word.document worddoc = wordapp.documents.open(ref filename, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing, ref nothing);         wordapp.visible = true;         foreach (microsoft.office.interop.word.paragraph item in worddoc.paragraphs)         {             if (item != null)             {                 if (item.range.text.trim() != "")                 {                      if (item.range.inlineshapes.count != 0)                     {                         foreach (microsoft.office.interop.word.inlineshape shape in item.range.inlineshapes)                         {                             //shape.select();                             shape.converttoshape().wrapformat.type=wdwraptype.wdwrapinline;                            // string = shape.converttoshape().wrapformat.type.tostring();                         }                     }                 }             }         }         worddoc.close(ref nothing, ref nothing, ref nothing);         wordapp.quit(ref nothing, ref nothing, ref nothing); 

shape.converttoshape().wrapformat.type=wdwraptype.wdwrapinline;it doesn't work. should change picture embedded?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

ios - Chat Bubble in Swift3 -