In that case, you cannot use the OLE/COM approach, sorry. To use OLE you must 
have the application installed on a computer - ideally on a stand alone PC - so 
that you can instantiate it and then manipulate that instance. If you had that 
available, then yes, you certainly could create and manipulate diagrams.

Looks like you are back to searching for an API that will create Visio files 
for you or a commercial product that does the same, or you could help Nick and 
the team develop that strand of POI further.

--- On Tue, 12/30/08, Ashok Kumar <[email protected]> wrote:
From: Ashok Kumar <[email protected]>
Subject: Re: Visio File Extraction
To: "POI Users List" <[email protected]>, [email protected]
Date: Tuesday, December 30, 2008, 11:04 PM

Hi,

When you say you can manipulate Visio using Java code, you mean creatting
Visio .vsd file using java ? and the other thing that I want to understand
is running Visio in the server side ? what exactly does this mean..

I will explain the requirement more clearly, I want to generate a Visio vsd
or vdx file without a visio installation. Note that I want this to be an API
and not a standalone GUI. I want this to work both for Windows and Linux
Operations systems. The visio generation should take inputs from my
application. I'm also open to take a look at commercial APIs.

Thanks again for your responses.

Regards,
Ashok.



On Tue, Dec 30, 2008 at 11:00 PM, Anthony Andrews
<[email protected]>wrote:

> As long as you are running on Windows and stand alone - that is to say
that
> you do not want to run Visio on a server - then it is possible to use
> OLE/COM to manipulate Visio using Java code.
>
> There are a variety of options open to you including SWT, Jacob and others
> I am sure. What you actually do is create a running instance of the Vision
> application, 'connect' to that and then execute VBA like commands.
Almost
> anything that you can do with Vision can be accomplished in the way - in
> effect, you are 'running' macros. I have no experience of
manipulating
> Vision like this but have used OLE to work with Excel and Word from Java
> code. There are problems - speed, the fact that the application were not
> intended to be used in this manner, etc, but it is possible should all
else
> fail.
>
> --- On Tue, 12/30/08, Ashok Kumar <[email protected]> wrote:
> From: Ashok Kumar <[email protected]>
> Subject: Re: Visio File Extraction
> To: "POI Users List" <[email protected]>
> Date: Tuesday, December 30, 2008, 4:05 AM
>
> Hi Nick,
> Thanks again for your response.. I will get back to you with the vsdump
> output and VSD generation part.
>
> Thanks,
> Ashok.
>
> On Mon, Dec 29, 2008 at 10:54 PM, Nick Burch <[email protected]>
wrote:
>
> > On Mon, 29 Dec 2008, Ashok Kumar wrote:
> >
> >> The link to vsdump in the POI page goes to 404 page, upon
googling I
> >> landed on to a unix package (is vsdump a linux utililty ?).. If
that
> is it,
> >> I will try to run that over my files and let you know the output.
> >>
> >
> > vsdump is a linux utility, yes. It's the only other open source
> project for
> > visio files I know of. I'll fix the link on the website in a day
or
> two,
> > when I can get my development machine online again
> >
> >  I would also like to know if there are way to create a VSD file
using
> java
> >> ? I understand from the project page that it is in the road
map.....
> is that
> >> something still being developed?
> >>
> >
> > It's not possible right now, alas. I'd like to add support,
but
> it'd be a
> > lot of work, and no-one's interested in sponsoring it. If
you're
> keen to
> > work on it though, do let me know and I'll try to help you get
> started, work
> > on it etc.
> >
> >
> > Nick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
>
>
>



      

Reply via email to