1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Stackoverflow]

Discussão em 'StackOverflow' iniciado por fdantas, Janeiro 20, 2021.

  1. fdantas

    fdantas Administrator Moderador

    I have one program which uses mailmerge in Word and it works perfectly in office 2007 and tested in 2010. But in office 2016 it throws an error

    [​IMG]

    Code is below

    ASSIGN lv_cDocument = fiFile. /* chosen from program select */
    ASSIGN lv_cDataFile = "C:\a\data.dat".
    ASSIGN lv_cMailMergeFile = "C:\a\dataOutput.doc".

    MailMerge(lv_cDocument, /* Main Document */
    lv_cDataFile, /* File that holds all the data */
    lv_cMailMergeFile, /* File to hold new mail merge document */
    NO).

    DEFINE VARIABLE oWord AS COM-HANDLE NO-UNDO.

    CREATE "Word.Application" oWord.
    oWord:Documents:Open("C:\a\dataOutput.doc").
    oWord:Visible = True.

    RELEASE OBJECT oWord.


    Any thoughts what is "new" in new office so i can modify my program that it works on all version of MS-Offices?

    Continue reading...

Compartilhe esta Página