0

I have written VSTO addin for Powerpoint 2010. I want to disable "New From Exisiting" functionality for powerpoint to achive some requirements. This option comes under : File -> New -> New From Existing

So is there any way to block or disable this functionality through code or registry settings ?

Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39

2 Answers2

0

You can hide the built-in tab or button on the backstage in PowerPoint 2010 and add your own control instead if required. Read more about the Backstage UI in the following series of articles in MSDN:

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • Thanks Eugene for reply. I tried some code using Control Ids. But using that i can disable whole group buttons. But i need to perform some functionality on one specific option of that group. But i'm not able to do that. For e.g using this whole template group got disabled. But I just want to disable "New from Existing" option of this group. Even I didn't able to find Control ID for this option. So can you please help me in this scenario in detail ?? – Ajit Medhekar Jul 15 '15 at 10:59
0

I have hooked CBTProc method of Windows in my plugin. In CBTProc we can capture every dialog box. So I have written code on this method by capturing call of "New from Existing Presentation" dialog box. You can get more info on CBTProc here : CBTProc

Ajit Medhekar
  • 1,018
  • 1
  • 10
  • 39