Word and MailingLabel question
-
To all the experts, i am writing a application which uses Microsoft Word to print mailing labels. The Microsoft Knowledge Base Article 278260 "Howto use MFC to Automate word to print Mailing Labels" was a big help so far. I would really like to give the user of my application a list of available labels to choose from prior to printing. But i can't figure out how to get the list of available labels from word. This seems to be possible for custom labels by using the CustomLabels - object. However the MailingLabel - object provides no way to get the count or names of the available predefined labels. The only thing you can get is the name of the "last used" label using GetDefaultLabelName(). I even tried to figure out in which file these labelnames are stored to retrieve them from there but without success. Can anybody help me on how to get this list of available labels out of word?