Is there a way to create a SmartArt Hierarchy chart in Word from a treeview that the user creates in a C# Windows Forms application?
Thanks for any help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
try like this:
this puts in the document the
SmartArtShape configured to use thelayoutnr 8. It’s not really well documented and I spent much time in finding the right articles and samples:this is very important to understand that you cannot create a
SmartArtLayoutobject with thenewkeyword but should use any of those provided by the Application’s layout collection…Application.SmartArtLayouts Property (Word)
This is some background…
Creating Custom SmartArt Layouts with Office Open XML for Office 2007 and Office 2010
Good luck 🙂