Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Label merge in code
I'm merging labels in code (in VB .Net)
I have the next code: Dim doc1 As New Object 'Dim doc1 As New Word.Document doc1 = CreateObject("Word.Document") doc1 = app1.Documents.Add(documenttype:=Documento_Tipo_Do cumento) 'Word.WdDocumentType.wdTypeDocument doc1.MailMerge.MainDocumentType = DocumentoPrincipal_Tipo_EtiquetasDistribucion 'Word.WdMailMergeMainDocType.wdMailingLabels doc1.MailMerge.OpenDataSource(strBD, linktosource:=True, Connection:="VIEW " & strTipo, sqlstatement:="SELECT * FROM `" & strTipo & "`") doc1.MailMerge.Application.MailingLabel.LabelOptio ns() But in a computer with Word 2000 the next error is shown: System.MissingMemberException: Public member 'LabelOptions' on type 'MailingLabel' not found. Why is it? TNX Alejandra Parra Mexico |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Mail merge only creates first label when doing edit individual lab | Mailmerge | |||
custom label page size in mail merge (on a mac) | Mailmerge | |||
Mail Merge Label layout. | Mailmerge | |||
mail merge only prints one label per page | Mailmerge | |||
Mail Merge Zip Code will not format correctly | Mailmerge |