Help with Mailing labels

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ffa@newsgroup.nospam

    Help with Mailing labels

    Hi All

    I am trying to print some mailing labels using the following code:

    Dim myProcess As New Process()
    With myProcess

    .StartInfo.File Name = docName 'prebuilt Word mail merge doc
    using merge.csv as a datasource

    .. StartInfo.Argum ents = docSource 'merge.csv - Name, Address etc

    .StartInfo.UseS hellExecute = True

    If (_LabelType = LabelType.ltAcc ountCurrent) Then

    . StartInfo.Verb = "Open"

    .StartInfo.Crea teNoWindow = False

    Else 'sometimes user will select how
    many copies

    .StartInfo.Verb = "Print"

    .StartInfo.Crea teNoWindow = True

    End If

    myProcess.Start ()

    End With

    Obviously, this doesn't work so well as the datasource (merge.csv file) is
    not loaded as the datasource.

    Anyone have any ideas, or do I need to use full Word automation?

    Thanks very much



Working...