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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. Word automation problem with C++

Word automation problem with C++

Scheduled Pinned Locked Moved COM
helpc++comtestingtools
2 Posts 2 Posters 1 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.
  • P Offline
    P Offline
    panzerdivisionmarkus
    wrote on last edited by
    #1

    I do think this is the right place to post this, because as I understand Office Automation is just a fancier word for COM to Office. :) I've done a small program that generates a bunch of worddocumnets and sends it either to printer or as a attached file in an e-mail. The printing works fine, it prints all the generated docs with the recipients name and stuff. The problem is with the mail. When my program tells word to send it to the specified e-mails, I first get a warning that a program is trying to use my mail and I can allow it to do so for an amount of time. This is fine, I can live with that. :) But then there comes another warning(excuse my bad english translation, I get the error message in swedish): A program is trying to send automatic e-mail. Will you allow this? If this is unexpected, it could involve a virus and you should choose No. Then I have to wait for about 5 seconds before I can press Yes. Is there any way to get around this message, or should I try a diffent approach? I've already allowed the program to use my mail program. I use MailMerge functions from word to send the documents, both to printer and to mail. I really hope someone can help me out /Markus

    J 1 Reply Last reply
    0
    • P panzerdivisionmarkus

      I do think this is the right place to post this, because as I understand Office Automation is just a fancier word for COM to Office. :) I've done a small program that generates a bunch of worddocumnets and sends it either to printer or as a attached file in an e-mail. The printing works fine, it prints all the generated docs with the recipients name and stuff. The problem is with the mail. When my program tells word to send it to the specified e-mails, I first get a warning that a program is trying to use my mail and I can allow it to do so for an amount of time. This is fine, I can live with that. :) But then there comes another warning(excuse my bad english translation, I get the error message in swedish): A program is trying to send automatic e-mail. Will you allow this? If this is unexpected, it could involve a virus and you should choose No. Then I have to wait for about 5 seconds before I can press Yes. Is there any way to get around this message, or should I try a diffent approach? I've already allowed the program to use my mail program. I use MailMerge functions from word to send the documents, both to printer and to mail. I really hope someone can help me out /Markus

      J Offline
      J Offline
      JonEngle
      wrote on last edited by
      #2

      Microsoft added this to Outlook after one of the slews of e-mail viruses. In older versions of outlook (98 and maybe 2000), this could be turned off, but I've never been able to find a way around it with outlook 2003. I ended up getting a 3rd party component for sending out e-mails. Sorry I don't have a better answer.

      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