Discussion:
Visio functionality without Visio installed
(too old to reply)
Probke
2010-04-15 17:14:49 UTC
Permalink
Hi all,

I have a task to create empty Visio document file (.vsd) with single page in
it and drop few shapes there. My problem is that I have to write Windows
console application for this purpose and it must run in the server
environment where Visio is not installed. Is it possible to do that?

If I run application below on my development environment, new instance of
Visio is started. But, on my server, where my application must run, Visio is
not installed and Visio application launch will fail. What I can do in this
situation?

using System;
using System.Collections.Generic;
using System.Text;
using Visio = Microsoft.Office.Interop.Visio;

namespace MyNamespace
{
class Program
{
static void Main(string[] args)
{
Visio.Application App = new Visio.Application();
}
}
}

Development environment: Win XP, VS 2005 (C#), MS Visio 2007,
Runtime environemt: Win Srv 2003

Thanks in advance,
Probke
John Goldsmith_Visio_MVP
2010-04-15 19:50:27 UTC
Permalink
Hello Probke,

Have you considered assembling an xml document (.vdx) rather than a binary
one?

What, or rather how complex a document are you trying to create? If it's
just 'a few shapes' then perhaps the xml route will work for you?

Best regards

John



John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
Post by Probke
Hi all,
I have a task to create empty Visio document file (.vsd) with single page
in it and drop few shapes there. My problem is that I have to write
Windows console application for this purpose and it must run in the server
environment where Visio is not installed. Is it possible to do that?
If I run application below on my development environment, new instance of
Visio is started. But, on my server, where my application must run, Visio
is not installed and Visio application launch will fail. What I can do in
this situation?
using System;
using System.Collections.Generic;
using System.Text;
using Visio = Microsoft.Office.Interop.Visio;
namespace MyNamespace
{
class Program
{
static void Main(string[] args)
{
Visio.Application App = new Visio.Application();
}
}
}
Development environment: Win XP, VS 2005 (C#), MS Visio 2007,
Runtime environemt: Win Srv 2003
Thanks in advance,
Probke
Continue reading on narkive:
Search results for 'Visio functionality without Visio installed' (Questions and Answers)
3
replies
Asus eee Pc How Good Are They?
started 2008-09-09 06:56:10 UTC
hardware
Loading...