This tutorial shows how you can have a Microsoft Office (Word, Excel,…) call your Delphi application. For the demonstration, I will use Word. From Word, a macro will call my Delphi application which will prompt the user for some data which will be inserted in the Word document.

This tutorial shows how you can have a Microsoft Office (Word, Excel,…) call your Delphi application. For the demonstration, I will use Word. From Word, a macro will call my Delphi application which will prompt the user for some data which will be inserted in the Word document.
http://francois-piette.blogspot.be/2013/01/microsoft-word-or-excel-calls-delphi.html
http://francois-piette.blogspot.be/2013/01/microsoft-word-or-excel-calls-delphi.html

Comments

  1. I was wandering although this is a very simple program how
    do you debug such a program?
    So i put a break point in ReadData and RUN the program from the ide.
    Triggered the program from word and  it did break. Then i pressed the run button to go on. I repeated the the word action to break again.
    And now i expected to break again,No.It loads a second instance of
    Delhiapp.
    So how do we stay in the ide to keep debugging and not only once?

    ReplyDelete
  2. Change the way the program has to be called. See image 6 in the article. Change "Instancing" from "Single instance" "Multiple instance".

    ReplyDelete

Post a Comment