467,075 Members | 900 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

mailing merge labels

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
Nov 21 '05 #1
  • viewed: 845
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nothing | last post: by
3 posts views Thread by Grim Reaper | last post: by
3 posts views Thread by Grim Reaper | last post: by
reply views Thread by ffa@newsgroup.nospam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.