Thread: Integration with Word

  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
    3,445
    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.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  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
    3,445
    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.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 09-20-2012, 11:48 AM
  2. Replies: 28
    Last Post: 10-23-2011, 07: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, 10: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, 01:16 PM
  5. Help reading text file word by word
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 05-25-2002, 05:13 PM

Tags for this Thread