News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

DoCmd( visCmdSendAsMail ) Doesn't Work vis Automation

Started by Visio Guy, February 16, 2009, 11:01:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visio Guy

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

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

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 157 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1089KB.
Tokens: post-login.
Cache hits: 15: 0.00349s for 26,724 bytes (show)
Cache misses: 5: (show)
Queries used: 16.

[Show Queries]