How To Check If An Outlook Email Is In Read-Only Mode

ADD-IN EXPRESS™ How to check if an Outlook Email is in Read-Only mode ?

Add-in Express™ Support Service That's what is more important than anything else

Forums list Forums Topics list Topics Search Search Help Help Login Login Register Register
  • Add-in Express blogs
Add-in Express forums > Add-in Express for .net and VSTO forum How to check if an Outlook Email is in Read-Only mode ? How to check if an Outlook Email is in Read-Only mode ?
Jun Wei Ng Guest
Hi There, I have an Outlook Email contains an email attachment. When I open the email attachment, the email can be opened but it is in read-only mode. Is there any way I can check is the email in read-only mode programmatically ? Outlook is unlike Word, in word object, we can still use the following code to check whether the document is in read-only mode or not: Dim activeDoc As Word.Document = appWord.ActiveDocument If activeDoc.ReadOnly = True Then // continue the process End If Best Regards, Jun Wei
Posted 09 Dec, 2019 05:09:18 Top
Andrei Smolin Add-in Express team Posts: 19184 Joined: 2006-05-11
Hello Jun Wei, An email opened for reading is read-only. See Mailitem.Sent; see https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.sent. If that property is true, the email is readonly. If not, the user may change it. The email is changed if MailItem.Saved is false. Andrei Smolin Add-in Express Team Leader
Posted 09 Dec, 2019 06:54:12 Top
Jun Wei Ng Guest
Hi Andrei, Appreciate the solution that you provided but I dont think it can be used to do the checking as it is not very accurate. Is there any proper way like using Word Object to check the opened email attachment is in read only mode ? My scenario as below: An email contains an email attachment, when I open the email attachment, it stated that the email attachment is in read only mode. When I do certain actions (I integrated my own function with Outlook), exception occurred saying that 'You don't have appropriate permission to perform this operation.' It throws exception when go through this line: Outlook.MailItem.SaveAs(path, Outlook.OlSaveAsType) Kindly assist. Best Regards, Jun Wei
Posted 09 Dec, 2019 22:05:18 Top
Jun Wei Ng Guest
Hi Andrei, Any update on this issue ? Best Regards, Jun Wei
Posted 11 Dec, 2019 23:36:09 Top
Andrei Smolin Add-in Express team Posts: 19184 Joined: 2006-05-11
Hello Jun, Sorry for misunderstanding. Jun Wei Ng writes: When I open the email attachment, the email can be opened but it is in read-only mode. Could you please explain this? I don't understand "read-only mode". Is this mode in any way different from what you get if you open a received email by double-clicking it? Andrei Smolin Add-in Express Team Leader
Posted 12 Dec, 2019 04:06:47 Top
Jun Wei Ng Guest
Hi Andrei, My scenario as below: An email contains an email attachment, when you double click to open that email attachment, at the top you will see '[The Subject of the e-mail attachment](Read-Only)'. This is what I meant. When I use my own function integrated with Outlook, I hit the 'You don't have appropriate permission to perform this operation.' exception. Best Regards, Jun Wei
Posted 12 Dec, 2019 20:41:57 Top
Andrei Smolin Add-in Express team Posts: 19184 Joined: 2006-05-11
Hello Jun, I haven't found how to identify such an email. At https://social.msdn.microsoft.com/Forums/officeocs/en-US/dd1b6b5c-3175-4bad-86f3-08cccd94c8cc/outlook-2010-you-dont-have-appropriate-permission-to-perform-this-operation?forum=outlookdev, Ken Slovak says that such a attachment is placed in a secure temp folder and the item is opened from there. In my tests however, the Outlook object model reports that that item is opened from Inbox. I suggest that you ask this question on the Outlook for Developers forum at https://social.msdn.microsoft.com/Forums/en-US/home?forum=outlookdev. I'd recommend that your description contains the string "email opened from attachment". May I ask you to publish here a link to your question on that forum? Andrei Smolin Add-in Express Team Leader
Posted 13 Dec, 2019 05:53:18 Top
  • Products & technologies
  • Office add-ins in .net
  • Office addins in Delphi
  • Website
  • Add-in Express Blog
  • Samples
  • HowTo samples for developers
  • Sample add-ins for Excel, Word, Outlook
  • Developer Guides
  • Add-in Express for Office and .net
  • Add-in Express for Office and Delphi
  • Sign In
  • |
  • Sitemap
  • |
  • Advanced search
  • Company
    • Home
    • Latest news
    • Blogs
    • Customers say
    • Success stories
    • Customers say
    • Our products in action
    • Add-in Express reviews
    • About Add-in Express
    • About us
    • Contact us
    • Products
      • Products
      • Add-in Express for Office and .netNew
      • Add-in Express for Office and Delphi VCLNew

      Add-in Express™ for Microsoft® Office and .net

      Solid framework for deep customization of Microsoft Office. Use solution templates, visual designers and components to develop version-neutral, secure and easy deployable extensions for all Office versions.

      Supported Office extensions COM add-ins, Outlook plug-ins, RTD servers, smart tags, Excel XLL and UDF

      Requirements
      • Office versions: 2024 - 2000
      • IDE: VS 2022 - 2012; VB.NET, C#, C++/CLI

      Overview Take a tour Customers say

      This technology is now available for our custom development services only. Based on the Add-in Express for Office core, it is designed for building custom-tailored Office add-ins with far less coding than you usually have to do. Plus, it includes all Add-in Express features such as True RAD, visual designers, Outlook view and form regions, etc.

      Extensions: VSTO-based application-level Office add-ins Applications: Outlook, Excel, Word, PowerPoint, Visio, InfoPath Office versions: 2003, 2007, 2010 (x86 and x64) IDE: VSTO 2005 SE, 2008, 2010; VB.NET, C#

      Overview Outlook-specific features

      Add-in Express™ for Microsoft® Office and Delphi® VCL

      Get the best platform for building version-neutral, fast and easy deployable plug-ins by using Add-in Express projects templates, visual designers, components and wizards in combination with a perfect Delphi compiler.

      Supported Office extensions COM add-ins, Outlook plug-ins, smart tags, Excel RTD and UDF

      Requirements
      • Office versions: 2024 - 2000
      • IDE: Embarcadero Delphi XE2 - Delphi 12 Athens

      Overview Customers say Add-in Express blogs

      Add-in Express™ for Internet Explorer® and Microsoft® .net

      Use this visual tool to create thread-safe, secure, isolated, deployable and context-sensitive Internet Explorer add-ons.

      Use visual designers and components to customize the IE interface with your own buttons, menu items, context menus, side-bars etc.

      Requirements
      • Internet Explorer versions: 6 - 11 (x86, x64)
      • IDE: VS 2010 - 2019; VB.NET, C#, C++/CLI

      Overview Customers say Add-in Express blogs

      Add-in Express™ Regions for Microsoft® Outlook® and VSTO

      Use this VSTO extension to develop advanced view and form regions for 17 different areas of the main Outlook Explorer window and all Outlook Inspector windows.

      Supported extensions Application-level Outlook add-ins

      Requirements
      • Outlook versions: 2021 - 2003
      • IDE: Visual Studio 2022 - 2012 with VSTO installed

      Overview Basic concepts Form regions View regions

      This technology is now available for our custom development services only. This visual toolkit allows creating secure, managed, isolated, deployable and version-neutral plug-ins for Outlook Express and Windows Mail. It provides powerful solution templates, Outlook Express - specific components, visual designers and wizards for advanced customization of Outlook Express menus, toolbars, panes and regions.

      Extensions: Outlook Express plug-ins Versions: Outlook Express 6.x, Windows Mail 6.x IDE: VS 2005, 2008; VB.NET, C#, C++/CLI

      Overview Getting started

      Security Manager for Microsoft® Outlook

      Add just a few lines of code to bypass the Outlook Object Model guard and avoid security warnings in add-ins and applications that automate Microsoft Outlook.

      Supported application types Stand-alone apps, Outlook add-ins

      Requirements
      • Outlook versions: 2021 - 2000
      • Languages: VB.NET, C#, Delphi XE2 - Delphi 12 Athens, C++ (MFC/ATL/CLI), VBA, etc.
      • 3 editions in 1 package: .NET, VCL and ActiveX

      Overview Customers say Add-in Express blogs

      The innovative technology for customizing Outlook views and forms. It is included in all Add-in Express for Office products and can be used to extend Outlook views, e-mail, task and appointment windows, To-Do bar, Reading and Navigation panes with your own custom sub-panes.

      Extensions: application-level Outlook add-ins Outlook versions: 2000, 2002, 2003, 2007, 2010 (x86 and x64) .NET Edition: VS 2005, 2008, 2010; VB.NET, C#, C++/CLI .NET Framework: 2.0 and higher VCL Edition: Delphi 5 - XE

      Outlook regions in .NET Outlook regions in Delphi

      All productsSuccess storiesCustomers saysAdd-in Express reviews
    • Services
      • Custom solutions
      • Benefits
      • Payment models
      • Services
      • Custom solutions for Microsoft Office
      • Custom solutions for Internet Explorer
      • Custom solutions for Outlook Express and Windows Mail
      • Migrating Office solutions to .net
      • Contact us and NDA
      • Contact us to request a quote
      • NDA
      • Downloads
        • Complete downloads list
        • Downloads by product
        • Add-in Express for Office and .net
        • Add-in Express for Office and VCL
        • Add-in Express for Internet Explorer and .net
        • Regions for Outlook and VSTO
        • Designer for WiX Toolset
        • VDProj to WiX Converter
        • Outlook Security Manager
        • Ribbon Designer for SharePoint & Office 365
        • Documentation
        • Support
          • About support service
          • Customers say
          • Contact support service
          • Support service policies
          • Support service resources
          • Learning Center
          • Blogs
          • Forums
          • Add-in Express HOWTOs
          • Add-in Express Power Toys
          • Sample add-ins with source code
          • Forums
            • Forums home
            • Add-in Express for .NET and VSTO
            • Add-in Express for VCL
            • Add-in Express for Internet Explorer
            • Other Add-in Express products
            • Learning center
              • Learning Center
              • Add-in Express for Office and .net
              • Add-in Express for Office and VCL
              • Add-in Express for Internet Explorer and .net
              • Security Manager for Outlook
              • Regions for Outlook and VSTO
              • Ribbon Designer for SharePoint and Office 365
              • Blog
                • Add-in Express blog
                • Blogs by products
                • Microsoft Office and .NET
                • Microsoft Office and Delphi
                • Internet Explorer and .NET
                • VDProj to WiX Converter
                • Office Development
                • Outlook Security Manager
                • Office 365 Development
                • How-to samples
                • HOWTO samples
                • Video HOWTO samples
                • Buy
                  • Buy online
                  • Subscription renewal
                  • Purchase orders
                  • Quotes and invoices
                  • Enterprise and team licenses
                  • Resellers
                  • FAQ, EULA and money back
                  • Subscriptions comparison
                  • Purchase and licensing FAQ
                  • Money back guarantee
                  • EULA
                  • Ask questions
                  © 2004 – 2025 Add-in Express All rights reserved. Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are property of their respective owners. Use of this site constitutes acceptance of our Privacy Policy and Cookies Policy.

Tag » How To Send A Read Only Email