Link to home
Start Free TrialLog in
Avatar of Bob K
Bob K

asked on

Create dynamic Visio file in SharePoint 2013 list (On-premise)

In Sharepoint 2013 (on prem), when I click on a command button, I am grabbing items from a master sharepoint list and creating a separate list (in a different site) from the items I have grabbed. In the same event of the command button, I would like to be able to create or instantiate a simple Visio file consisting of 1 container/shape for each list item. For example, if I have 4 list items named (1) Apha (2) Beta (3) Gamma (4) Delta, then the Visio file I will create should have 4 process shape containers (one corresponding to each item with the respective text of Alpha, Beta, Gamma, Delta)

To summarize, I need to provide Export to Visio functionality feature to able to create a visio file along with the list. Is there way to do with Jquery/Javascript api to create a dynamic visio file related to process item.

Here's helpful link to create a visio diagram into webpart using ECMAScript but unable to find out namespace of VwaControl namespace:

I really appreciate your suggestion on this.
Avatar of Scott Helmers
Scott Helmers
Flag of United States of America image

As a general response, yes, it is possible to use APIs to create a Visio diagram. It isn't automatic, i.e., you have to specify everything: which shape to draw or drop on a page, the exact location to place the shape, etc. However, it can be done.

As an example, the Hey, Scripting Guy blog at MSDN regularly publishes PowerShell scripts that could be useful examples. I realize you're not asking for PowerShell but these should give you some ideas:
-- a general description using a script to create a diagram
-- creating a diagram using shapes from a stencil
-- creating a diagram by drawing rectangles on the page
Avatar of Bob K
Bob K

ASKER

Thanks, let me review these & get back soon.
Do still need assistance, Bob? If not, feel free to close the question.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.