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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. VBA Wordsworth

    Problem with event handlers

    VBA Wordsworth, Jul 29, 2003, in forum: Word Programming
    Replies:
    0
    Views:
    157
    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:
    181
    Garry Kessler
    Sep 13, 2003
  3. lee
    Replies:
    0
    Views:
    126
  4. Wayne Herbert

    Problem With Inserting and Formatting StyleRef Fields

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

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