Visio Guy

Visio Discussions => Visio 2013 Issues => Topic started by: caolen on September 02, 2014, 08:05:52 PM

Title: Creating VSLs
Post by: caolen on September 02, 2014, 08:05:52 PM
Has anyone seen any training for creating VSLs for Visio 2013 using C++ in Visual Studio 2013?  I'm looking for a template and some step-by-step instructions.
Title: Re: Creating VSLs
Post by: Nikolay on September 02, 2014, 09:27:50 PM
Why would you need a VSL in year 2014?
As far as I understand, it has no advantages over the other approaches (COM / VSTO)
I.e. in the times of Visio 2000 a VSL could do something COM couldn't but that's not the case anymore, as far as I know.

Anyways, the one from the Visio 2010 SDK still can be compiled with Visual Studio 2013
Title: Re: Creating VSLs
Post by: Nikolay on September 05, 2014, 05:42:36 AM
If you are not fixed on VSL, but want an Add-in written in C++ (in Visual Studio 2013) then you can give a try to my project template:

http://visualstudiogallery.msdn.microsoft.com/a9d68071-a0b8-40d1-8ada-fb0f6891c9cb

To install from within Visual Studio 2013:
Tools -> Extensions and updates -> Online -> C++ Visio COM Addin -> Install.

Title: Re: Creating VSLs
Post by: Yacine on September 05, 2014, 05:58:32 AM
WiX does unfortunately not run on Studio Express Editions.
Title: Re: Creating VSLs
Post by: Nikolay on September 05, 2014, 07:12:18 AM
How do you create a setup in VS Express 2013?
(I don't have express, so I'm not quite sure)

Does the Visual Studio Installer project work in 2013 Express, i.e. does this one work in Express?
http://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d
Title: Re: Creating VSLs
Post by: Yacine on September 06, 2014, 06:10:35 AM
QuoteHow do you create a setup in VS Express 2013?
I don't. Full edition is required.
I tried playing around with NetOffice (https://netoffice.codeplex.com/ (https://netoffice.codeplex.com/)), but it does not yet support Visio.
So I'm still stuck with VBA.

The visual installer doesn't work neither with the express edition.
Title: Re: Creating VSLs
Post by: Nikolay on September 06, 2014, 09:25:30 AM
Hi Yacine.

In principle it is possible to build the installer with WIX without Visual Studio installed at all, i.e. VS is not required to build installer..
You could simply run MSBUILD for the solution from the command line, and that's it.

The template could be improved to not require WiX to be installed in VS, but use whatever installer VS got..

Anyways,
I think ideal to solve this problem with installations "once and for all (https://www.youtube.com/watch?v=gONcDfFrPis)" :) could be something like WebApps in JavaScript/HTML and store online.
So that the app

- can be modified centrally for all users.
- (almost) no installation
- will be compatible with online version of the Visio (if it ever comes, yea)
- it is easy to build rich user interface with HTML

What would you think about this idea (it's about macroces, but I think it wold be better to speak about "web-based" apps - like in a panel in Visio for example)?
http://visguy.com/vgforum/index.php?topic=5238.msg20657
Title: Re: Creating VSLs
Post by: Yacine on September 06, 2014, 12:42:49 PM
Sounds nice, but is as inaccessible as the professional version of visual studio, because VSTO is also not in the express edition.
Title: Re: Creating VSLs
Post by: Nikolay on November 16, 2014, 05:22:10 PM
Just to inform: from now on, the Visual Studio Professional (under the name "Community Edition") is available for free:
www.visualstudio.com/en-us/products/visual-studio-community-vs

Means, one can use any VS extensions (like WiX or Deployment project) for free. Thanks M$ :)
Title: Re: Creating VSLs
Post by: Yacine on November 16, 2014, 05:58:08 PM
Does this mean, VSTO is included??? Haleluja! Wix! all the good stuff  :o !
Title: Re: Creating VSLs
Post by: Nikolay on November 16, 2014, 07:09:49 PM
Wix/Setup project/Resharper are working. Did not find the VSTO though :-\
Title: Re: Creating VSLs
Post by: Yacine on November 17, 2014, 06:42:35 PM
Guess you did not need to download yourselves. There many packages missing. Installed it partially yesterday evening.
Will try to find the missing packages on the net.
Title: Re: Creating VSLs
Post by: Paul Herber on November 17, 2014, 07:22:11 PM
When I had the full VS2010 installed it slowed my laptop down so much. Uninstalling it was like a breath of fresh air!
Title: Re: Creating VSLs
Post by: Yacine on November 17, 2014, 08:07:32 PM
Yes, quite heavy package ... of which one would use only a tiny bit.