Author Topic: DoCmd( visCmdSendAsMail ) Doesn't Work vis Automation  (Read 6307 times)

0 Members and 1 Guest are viewing this topic.

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1737
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
DoCmd( visCmdSendAsMail ) Doesn't Work vis Automation
« on: February 16, 2009, 06:01:16 AM »
The help file says that this should work via automation:

  Call Visio.Application.DoCmd(Visio.VisUICmds.visCmdSendAsMail) '= 1292

But I am getting the error:

  "Requested Operation Is Presently Disabled"

in Visio 2007 Professional.

Curiously, the very-similar call:

  Call Visio.Application.DoCmd(Visio.VisUICmds.visCmdSendToExchange) ' = 1589

works just fine!

Looks like a BUG to me!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: DoCmd( visCmdSendAsMail ) Doesn't Work vis Automation
« Reply #1 on: February 16, 2009, 06:16:49 AM »
It would be interesting to understand how some of these work under the covers. The reason is that they may directly/indirectly designed to work with other system tools. The obvious ones are of course e-mail (outlook/outlook express/windows mail, depending on platform, xp/vista) and browser (things changed between i.e. 6 and i.e. 7 on what was going to be allowed). To add insult to injury the platform (x32 vs. x64) also plays a part in that the command may call an x32 executable that is not mirrored from an x64 one (telnet is a good example and why I moved to a standalone SSH module).
al