View Single Post
 
Old 12-10-2022, 06:14 AM
zhanglei1371 zhanglei1371 is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Dec 2022
Posts: 2
zhanglei1371 is on a distinguished road
Default How to put the shape into a canvas with xml-Method?

Hello Everyone!

Now I meet a puzzle about how to put some shape into a canvas.

Normally,we Can use VBA to cut selection shaperange into clipboard ,then insert a canvas into the word,and use the select method to activate the canvas to paste the shapes into the canvas.

But this method is very clumsy and not stable.

I have seen an word-addin,it can put all the shape into a canvas automatically.Especially very awesome for the flow chart。

I had study the xml-code with Activedocument.range.xml for a long time,but gained nothing。I had tried to put the pict-segment into the canvas-code,but faile in the end.

So I want to know how to achive this by the xml-method though VBA.But not Aspose or SpireDoc.Because the latter can not deal with this condition when word is open.

Thanks a lot for the help!!!
Reply With Quote