By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,557 Members | 1,184 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,557 IT Pros & Developers. It's quick & easy.

Java calling C# or VBA (MS Office API) ?

P: n/a
Hi,

I am writing a Java application which among many other things
has to call some MS Office [PowerPoint] internal methods,
which only seems to be possible from either VBA or C#.

Can anybody suggest a way of Java calling VBA or C# ?

I do know how to call an executable from Java
or Java interface with C/C++ through JNI.
Thank you in advance,
Oleg.

P.S.: If you know how to call PowerPoint from Java or VC++,
please speak out too.
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Oleg Konovalov wrote:
Hi,

I am writing a Java application which among many other things
has to call some MS Office [PowerPoint] internal methods,
which only seems to be possible from either VBA or C#.

Can anybody suggest a way of Java calling VBA or C# ?

I do know how to call an executable from Java
or Java interface with C/C++ through JNI.
Thank you in advance,
Oleg.

P.S.: If you know how to call PowerPoint from Java or VC++,
please speak out too.


I'm not an expert, but I think that CORBA is usefull for such things.
That's what told my CORBA teacher...
Good luck !

Xav
Jul 17 '05 #2

P: n/a
Liz

"Oleg Konovalov" <ok********@sarnoff.com> wrote in message
news:c9*********@news.sarnoff.com...
Hi,

I am writing a Java application which among many other things
has to call some MS Office [PowerPoint] internal methods,
which only seems to be possible from either VBA or C#.

Can anybody suggest a way of Java calling VBA or C# ?

I do know how to call an executable from Java
or Java interface with C/C++ through JNI.

If the 'vba', 'c#', 'c' or 'c++' is made into a '.dll' just
follow the tutorial information at the Sun web site.

Thank you in advance,
Oleg.

P.S.: If you know how to call PowerPoint from Java or VC++,
please speak out too.

Jul 17 '05 #3

P: n/a
Liz,

Could you please post a link to the document on Sun's site ?

Thank you,
Oleg.

Liz wrote:
"Oleg Konovalov" <ok********@sarnoff.com> wrote in message
news:c9*********@news.sarnoff.com...
Hi,

I am writing a Java application which among many other things
has to call some MS Office [PowerPoint] internal methods,
which only seems to be possible from either VBA or C#.

Can anybody suggest a way of Java calling VBA or C# ?

I do know how to call an executable from Java
or Java interface with C/C++ through JNI.


If the 'vba', 'c#', 'c' or 'c++' is made into a '.dll' just
follow the tutorial information at the Sun web site.

Thank you in advance,
Oleg.

P.S.: If you know how to call PowerPoint from Java or VC++,
please speak out too.


Jul 17 '05 #4

P: n/a
JavaJug,

I have done a lot of Java-CORBA-C++ development before
and would not recommend that option unless you go from Java to C++
over the network, use JNI for that. Too much overhead and very hard to
debug.

In my case they live on same machine, so the only reason I am doing that
is because Microsoft doesn't give any access to Office API through Java
(that Sun-Microsoft wars over Java).

Thank you,
Oleg.

JavaJug wrote:
Oleg Konovalov wrote:
Hi,

I am writing a Java application which among many other things
has to call some MS Office [PowerPoint] internal methods,
which only seems to be possible from either VBA or C#.

Can anybody suggest a way of Java calling VBA or C# ?

I do know how to call an executable from Java
or Java interface with C/C++ through JNI.
Thank you in advance,
Oleg.

P.S.: If you know how to call PowerPoint from Java or VC++,
please speak out too.


I'm not an expert, but I think that CORBA is usefull for such things.
That's what told my CORBA teacher...
Good luck !

Xav


Jul 17 '05 #5

P: n/a
On Fri, 04 Jun 2004 10:19:13 -0400, Oleg Konovalov wrote:
(that Sun-Microsoft wars over Java).


They are supposed to be over.
<http://www.physci.org/jvmclean.jsp>
('recent' news near top of page)

Maybe if you ask MS again, nicely... ;-)

F'Ups set to c.l.j.programmer, as it
was one of only two of the five groups
to which this was cross-posted that is
actually a valid group.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.