Can't we copy shape(s) from a PPT slide to word document in the orginal format in C#?

前端 未结 3 2033
旧时难觅i
旧时难觅i 2021-01-15 13:01

I tried to copy autoshape from PPT to word. but its copying as picture format. We cant edit the text or shape in word. How to avoid this?

Code I m using not giving e

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 13:44

    somewhat i manged to copy shape in EMF format.

    shape.Copy(); 
    
    object objectMissing = System.Reflection.Missing.Value;                                                                             
    object objLink = false;
    object objType = WdPasteDataType.wdPasteEnhancedMetafile;                                        
    wordApp.ActiveWindow.Selection.Range.PasteSpecial(ref objectMissing, ref objLink, ref objectMissing, ref objectMissing, ref objType, ref objectMissing, ref objectMissing);
    

提交回复
热议问题