.net 调用outlook将msg另存为txt

主要是权限问题

在组件服务里管理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.

你可能感兴趣的:(.net 调用outlook将msg另存为txt)