Problem with OpenDataSource call

Discussion in 'Word Programming' started by LAS, Aug 4, 2011.

  1. LAS

    LAS Guest

    I'm not sure this is the correct forum for this question. If not, could
    someone direct me to a more appropriate one?

    The following bit of code is from a PowerBuilder script. It has worked
    through many releases of Powerbuilder at many sites and through many Windows
    releases. We had to add a parameter when Word 11 was released. It's
    failing now with the error below. The difference that I'm aware of is that
    Word 14 is running in that environment. The Word 2010 documentation online
    shows the same parameters that I'm using here. I doubt that Word 14 changed
    them and then Word 2010 changed them back. Right? Any ideas about what to
    look for? In particular, is the value 8 for the last parameter, which is
    wdMergeSubTypeWord2000 still appropriate? I didn't write this code and
    really don't know what that means. Someone told me to set that param to 8
    when we had to handle Word 11.

    TIA
    LAS

    ole_word_file.MailMerge.OpenDataSource(is_excel_doc,0,FALSE,TRUE
    ,FALSE,FALSE, &
    "","",FALSE,"","","Entire Spreadsheet", &
    "","",FALSE,8) //8 is value for wdMergeSubTypeWord2000

    Error: Name not found accessing external object property mailmerge
     
    LAS, Aug 4, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VBA Wordsworth

    Problem with event handlers

    VBA Wordsworth, Jul 29, 2003, in forum: Word Programming
    Replies:
    0
    Views:
    127
    VBA Wordsworth
    Jul 29, 2003
  2. Garry Kessler

    Compare Documents problem Word 2000

    Garry Kessler, Sep 13, 2003, in forum: Word Programming
    Replies:
    0
    Views:
    138
    Garry Kessler
    Sep 13, 2003
  3. lee
    Replies:
    0
    Views:
    95
  4. Wayne Herbert

    Problem With Inserting and Formatting StyleRef Fields

    Wayne Herbert, Feb 6, 2004, in forum: Word Programming
    Replies:
    1
    Views:
    189
    Wayne Herbert
    Feb 7, 2004
  5. Replies:
    0
    Views:
    156
  6. External program call from Excel VBA

    , Jan 26, 2007, in forum: Word Programming
    Replies:
    1
    Views:
    186
    Michael Bednarek
    Jan 26, 2007
  7. Bob Eaton
    Replies:
    3
    Views:
    74
    Shauna Kelly
    Aug 23, 2007
  8. JD
    Replies:
    0
    Views:
    366
Loading...