Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Nov 2001
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    wordbasic mailmerge (6,7,95,97)

    Hi,
    Using explicit wordbasic to automate mailmerge (can't move to word.application).

    Easily done with new document (.mailmerge 1,0,0,0,0,0,1), but can't figure out
    how to do it with email (.mailmerg 1,2, ... ?) or fax (.mailmerge 1,3, .... ?).

    Any ideas/resources ?

    Ami

  2. #2
    New Lounger
    Join Date
    Nov 2001
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: wordbasic mailmerge (6,7,95,97)

    I found position.exe on Microsoft site and wrdbasic.hlp.
    Worked with the documentation specification and - it didn't work.

    I really need help here friends,
    any ideas about resources, samples, solutions?

    TIA,
    Ami <img src=/S/broke.gif border=0 alt=broke width=31 height=23> <img src=/S/broke.gif border=0 alt=broke width=31 height=23>

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: wordbasic mailmerge (6,7,95,97)

    What is your code and data source, and what happens?

  4. #4
    New Lounger
    Join Date
    Nov 2001
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: wordbasic mailmerge (6,7,95,97)

    I have text tab delimited datasource for a mailmerge (both- header and data on the same file).
    The automation is implemented with wordbasic(wb70en32.tlb) + vb (tried 4 and 6).

    Everything works fine when doing mailmerge to a newdoc.
    (with wordbasic ....
    .mailmerge 1,0,0,0,0,0,1
    ..... ) merges beutifully to a new doc.
    When trying to automate the merge to email or to fax - nothing is happening or I get errors
    about wrong parameters - but without specifying the parameter or the what is wrong.
    ( .mailmerge 1,2, .... as in the first message).
    When referring to the help on MSDN it didn't find anything specific.
    I can't use named arguments (not supported - only direct as in the above syntax), and I tried
    all the options described in posit32.txt or posit32.hlp.
    I also couldn't find any other online resource about it.

    Any ideas?

    TIA
    Ami

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: wordbasic mailmerge (6,7,95,97)

    I don't have Word 6 at the office, but I do have the book Word Developer's Kit. Mapping your arguments to the named arguments listed, I think there are a couple missing:

    .mailmerge 1,2,0,0,0,0,1

    .CheckErrors = 1
    .Destination = 2
    .MergeRecords = 0
    .From = 0
    .To = 0
    .Supression = 0
    .MailMerge = 1
    .MailSubject = ? [Subject line for the message]
    .MailAsAttachment = ? [1 = True]
    .MailAddress = ? [Name of the merge field that contains the e-mail address]

    Apparently these latter parameters are mandatory. Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •