none
How to disable the the new screen capture function in Office 2010 applications through the VB code? RRS feed

  • Question

  • Our product has an ActiveX Control developed used VB 6,  which loads the installed Office 2010 application from the machine. As part of new feature in Office 2010 Microsoft has provided the screen capture utility as one of the toolbar buttons. All we need is find a way to disable this button so that until the ActiveX is loding the application this feature should not be available to the end user and once we exit from the application we would like to enable it back.

    Kindly help suggesting any solutions to do this as we are desperately looking for a suitable solution for some time now.

    Many thanks in advance.
    Sunday, December 5, 2010 10:46 AM

All replies

  • Hello DommelM,

    Thanks for posting. Do you mean the Screenshot control of Illustration on Insert tab? If yes, to disable it, we could use <command> element in Ribbon xml, and set the Enable to False. To enable it back, please use Ribbon.Invalidate or Ribbon.InvalidateControl method. For more information, please see Cindy and Manvir's replies in this thread: http://social.msdn.microsoft.com/Forums/en/vsto/thread/4cc63395-3ac8-47bc-83ce-d41ee4214952.

    If you have any concern on this post, just feel free to follow up. Have a nice day.

    Best regards,
    Bessie Zhao - MSFT
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Monday, December 6, 2010 3:16 AM
  • Hello again DommelM,

    I am writing to check the status of the issue on your side. Could you please let me know if this suggestion works for or not? If you have any question or concern, please feel free to follow up or unmark it back.


    Bessie Zhao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, December 13, 2010 11:30 AM
  • Hi Bessie,

    Thank you very much for your reply.

    The solution helped us to disable particular files in Word, Powerpoint and Excel. The CustomUI editor was used to add the screenshot disable command.

    However, our issue is that we need to disable the screenshot for all Word, PPT and Excel Files being opened on a particular PC, not specific files.

    In the Excel Application, we used the Add-Ons feature to include the Excel file, which had the screenshot disable command and it worked fine. Any excel file being opened, had the screenshot feature disabled.

    However, in Word and PPT, it is accepting only dll and exe files as Add-Ons, so we are stuck at that point.

    Thank you.

    Regards,

    DommelM

     

     

    Wednesday, January 19, 2011 6:50 AM
  • Hi Dommel

    As you're using VB6, I'm going to be moving this discussion to the "General Office Development" forum. This forum is specifically for a .NET Technology, so you're off-topic here and that could lead to incorrect and confusing answers if people don't catch that little fact :-)

    It should be possible for you to create COM Add-ins for both Word and PowerPoint, using the IDTExtensibility2 interface. A Ribbon customization (XML) can be defined as part of your Add-in. A COM add-in is application-level and should hold for all documents opened during the session, unless a specific document's Ribbon overrides (not to be expected in this case, but I thought I should mention it).

    If you've no experience developing Office COM add-ins the following links might help

    http://msdn.microsoft.com/en-us/library/aa140195(office.10).aspx
    http://msdn.microsoft.com/en-us/library/aa155698(office.10).aspx


    Cindy Meister, VSTO/Word MVP
    • Proposed as answer by AnnetteSV Thursday, February 10, 2011 10:57 AM
    Wednesday, January 19, 2011 3:08 PM
    Moderator
  • Hi Cindy,

    Thank you very much for your reply.

    Will give you an update if the issue is fixed.

    Thanks again.

    Regards,

    DommelM

    Sunday, January 23, 2011 6:37 AM
  • Hello Cindy,

    Thank you for the feedback.

    As a continuation to Dommel's reply, we have managed to disable the screenshot button using Com Add-Ins for Office 2010. So when any Office application file is opened up, the screenshot button is disabled.

    However, we would like to know if there is any possibility to disable the Add-Ins in the Excel/Word/PPT Options. There is still a possibility that the Com add-ins file that we created, could be removed(unchecked) by the end-users and the screenshot would be enabled again. Also if the file is opened in Safe mode, the screenshot feature is still enabled.

    Could you help us with any feedback on this.

    Thanks and Regards,

    Annette.

     

    Thursday, February 10, 2011 10:59 AM
  • Hi Annette

    RE Safe Mode: This boots the application with the installation defaults. There's nothing you, as a developer, can do about this. Possibly, in an enterprise environment some things can be set in the Registry, using "policies". The place to ask about that would be the TechNet forum for Office/Word IT pros.

    It's even possible that there's a way to permanently remove this feature, using the tools available to network admins...

    RE disabling an add-in: Addins installed to the HKLM hive of the Registry are not listed in the user UI, so cannot be unloaded by the user. Only add-ins registered in the HKCU are listed in the UI.


    Cindy Meister, VSTO/Word MVP
    Thursday, February 10, 2011 6:11 PM
    Moderator
  • maybe a little late: had the same problem and made some researches. found Screen Capture Manager -> www.screencapturemanager.com

    Seems it blocks print screen and snipping tool at user level, without using group policy.

    Maybe it can also be adapted to further purposes

     

    my 2c

    serge

    Tuesday, November 8, 2011 12:03 PM
  • could you please share a code of how to disable the screenshot
    mr_abuzer@hotmail.com

    Maher Abu Zer M.Sc. MIS Software Development Team Leader

    Thursday, October 1, 2015 11:44 AM