#1
|
|||
|
|||
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!!! |
#2
|
||||
|
||||
There is an option that automatically creates the Drawing Canvas. You can turn it on vba with
Code:
Application.Options.AutoCreateNewDrawings = True
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Quote:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing Recorded Macro Selection/Clipboard Method to Range/FormattedText Method | zanodor | Word VBA | 5 | 07-15-2022 01:25 AM |
Using the Drawing Canvas | RobertWA | Word | 5 | 08-31-2020 02:34 PM |
How do i remove the border around a text box in my drawing canvas? | laredotornado | Word | 1 | 02-23-2017 11:11 AM |
Saving drawing canvas as vector graphic | ChrisBrewster | Word | 1 | 11-17-2014 11:41 AM |
Pasting screendumped pictures into a drawing canvas | simian | Drawing and Graphics | 0 | 10-06-2008 06:01 AM |