Integration with Word

This is a discussion on Integration with Word within the C++ Programming forums, part of the General Programming Boards category; Hi All. I', new here are fairly new to C++ so please excuse my ignorance! I'm undertaking a project at ...

  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    2

    Integration with Word

    Hi All.

    I', new here are fairly new to C++ so please excuse my ignorance! I'm undertaking a project at the moment which requires me to hook into a custom c++ application from a Java applet via JNI. The c++ application needs to communicate with MS Word and potentially other office programmes in order to highlight text and offer find/replace functionality programatically. The idea is that when the applet is launched, it will communicate with the C++ methods to hook into an open MS Word document and highlight all words that start with the letter 't' for example.

    I'm concentrating on the C++ side of things first and i'm just wondering whether anyone can point me in the right direction? Even some basic access to an open word document would give me a great start!

    Thanks in advance for your help.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,539
    If you're new to C++, I'd recommend learning the language first, before taking on a relatively complex project like this. What you want to do is probably going to involve calls to COM objects, and COM is not something I'd recommend for C++ beginners.
    Code:
    namespace life
    {
        const bool change = true;
    }

  3. #3
    Registered User
    Join Date
    Sep 2013
    Posts
    2
    Hi Elkvis. Thank's for your reply but unfortunately i have been tasked with this and i need to try and find a solution. I may have some experienced help soon but i want to do some leg work first.

    Any pointers would be highly appreciated guys!

    Cheers

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    2,539
    try this link Creating COM objects with Java - Stack Overflow

    now you can just google how to access MS Word via COM, and you should be all set.
    Code:
    namespace life
    {
        const bool change = true;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 09-20-2012, 12:48 PM
  2. Replies: 28
    Last Post: 10-23-2011, 08:17 PM
  3. reading text-and-numbers file word by word
    By bored_guy in forum C Programming
    Replies: 22
    Last Post: 10-26-2009, 11:59 PM
  4. open file, search of word, replace word with another
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 06-05-2002, 02:16 PM
  5. Help reading text file word by word
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 05-25-2002, 06:13 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21