Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Word and MailingLabel question

Word and MailingLabel question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gunnar Matzler
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups