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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oleg  Konovalov

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

    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.


  • JavaJug

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

    Oleg Konovalov wrote:
    [color=blue]
    > 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.
    >
    >[/color]

    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

    Comment

    • Liz

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


      "Oleg Konovalov" <okonovalov@sar noff.com> wrote in message
      news:c9lia9$lno 2@news.sarnoff. com...[color=blue]
      > 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.
      >[/color]

      If the 'vba', 'c#', 'c' or 'c++' is made into a '.dll' just
      follow the tutorial information at the Sun web site.
      [color=blue]
      >
      > Thank you in advance,
      > Oleg.
      >
      > P.S.: If you know how to call PowerPoint from Java or VC++,
      > please speak out too.
      >
      >[/color]


      Comment

      • Oleg Konovalov

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

        Liz,

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

        Thank you,
        Oleg.

        Liz wrote:
        [color=blue]
        > "Oleg Konovalov" <okonovalov@sar noff.com> wrote in message
        > news:c9lia9$lno 2@news.sarnoff. com...[color=green]
        > > 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.
        > >[/color]
        >
        > If the 'vba', 'c#', 'c' or 'c++' is made into a '.dll' just
        > follow the tutorial information at the Sun web site.
        >[color=green]
        > >
        > > Thank you in advance,
        > > Oleg.
        > >
        > > P.S.: If you know how to call PowerPoint from Java or VC++,
        > > please speak out too.
        > >
        > >[/color][/color]

        Comment

        • Oleg Konovalov

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

          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:
          [color=blue]
          > Oleg Konovalov wrote:
          >[color=green]
          > > 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.
          > >
          > >[/color]
          >
          > 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[/color]

          Comment

          • Andrew Thompson

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

            On Fri, 04 Jun 2004 10:19:13 -0400, Oleg Konovalov wrote:
            [color=blue]
            > (that Sun-Microsoft wars over Java).[/color]

            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.programme r, 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

            Comment

            Working...