title: PowerPoint Interop Assemblies Slowness Issue
body: <p>I'm using MS Office interop assemblies to build a Powerpoint addin that inserts slides and charts on the fly. But during insertion it take up to 20 seconds to complete the process from inserting the slide to insertion of the chart.</p>
  
  <p>After doing extensive logging, I noticed few lines of code where our application gets stuck for 20+ seconds.
  Here are those lines:</p>
  
  <pre><code>powerpointChartObj.SetSourceData(Source:=String.Format("=Sheet1!A1:B{0}", 5))
  
  powerpointSlideObject.Shapes("some shape name")
  </code></pre>
  
  <p>We continuously play with PowerPoint chart and slide objects during the slide insertion process but some time it gets blocked on one of above lines. And it's random on which line it gets blocked. </p>
  
  <p><strong>Following are the office libraries we are using:</strong></p>
  
  <ol>
  <li>Microsoft Office 16.0 Object Library</li>
  <li>Microsoft Excel 16.0 Object Library</li>
  <li>Microsoft Graph 16.0 Object Library</li>
  <li>Microsoft PowerPoint 16.0 Object Library</li>
  <li>Microsoft Word 16.0 Object Library</li>
  <li>Microsoft.Office.Tools.dll</li>
  <li>Microsoft.Office.Tools.Common.dll</li>
  <li>Microsoft.Office.Tools.Common.v4.0.Utilities.dll</li>
  <li>Microsoft.Office.Tools.v4.0.Framework.dll</li>
  <li>Microsoft.Vbe.Interop</li>
  </ol>
  
  <p><strong>Test Environemnt</strong></p>
  
  <p>Office 2016</p>
  
  <p>Windows 8.1 + Windows 10</p>
  
  <p>16 GB RAM, Intel Core i5-4570 CPU</p>
  
  <p>Any solution or workaround would be highly appreciated.</p>
  
  <p>PS. Also tried using Office 15.0 Object libraries</p>
  
  <p><strong>Updated</strong></p>
  
  <p>I've tried EnableEvents and set it false forever. It boost up the performance during chart insertion/update scenarios but if we continuously make calls to PowerPoint COM components(e.g. Shapes, slides etc. to manipulate PowerPoint things), PowerPoint gets stuck for around 20 seconds again. Not sure if there is anything similar to EnableEvents available in PowerPoint interop.</p>