.net 调用outlook将msg另存为txt

来源:互联网 发布:百度移动优化排名技术 编辑:程序博客网 时间:2024/04/29 22:54

主要是权限问题

在组件服务里管理outlook增加权限后需要在注册表中增加权限

来源:
http://kb.funcshun.com/microsoft-outlook-2010-saving-file-error-cannot-create-file-filename-right-click-the-folder-you-want-to-create-the-file-in-and-then-click-properties-on-the-shortcut-menu-to-check-your-permiss/


Microsoft Outlook 2010 error “Cannot create file: “filename”. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder” when trying to right click and save-as.


Capture


1.  Close Outlook 2010


2.  Click on Start


3.  Click on Computer


4.  Click on C:\ drive


5.  Create new folder on the root, lable “temp1”


6.  Click on Start, click Run, type regedit, and then click OK.


7.  Locate and then click the following registry key:  HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security\


8.  It’s good practice to do a backup of any registry keys you modify.  In this case lets right-click the folder Security and click Export, then save as desired.


8.  In the right pane, double-click" OutlookSecureTempFolder "or right-click and click Modify.


9.  In the Value Data field, type the path of the folder you created if different than the above "C:\temp1"


10.  Exit Registry Editor


11.  Restart the computer.


12.  Once computer is back on, open Outlook and attempt to save any attachment.

0 0
原创粉丝点击