title: Extra Excel Application Opening while creating powerpoint charts
body: <p>I am creating charts in PowerPoint. The below code opens two excel applications. One opens in the background that is invisible. The second one opens after the method ends. I need to make sure second excel either never open ideally or I can close it after it opens.</p>
  <p>I have tried the below things but none worked.</p>
  <p><a href="https://stackoverflow.com/questions/158706/how-do-i-properly-clean-up-excel-interop-objects">I have tried forcing GC, Manual ReleaseComObject, Killing Excel process</a></p>
  <p><a href="https://stackoverflow.com/questions/25134024/clean-up-excel-interop-objects-with-idisposable">I have tried separating excel COM objects and forcing GC</a></p>
  <pre><code>private void BtnInsert_Click(object sender, EventArgs e)
  {
      var Addin = Globals.ThisAddIn;
      Microsoft.Office.Interop.PowerPoint.Application activeApplication = Addin.Application;
      DocumentWindow activeWindows = activeApplication.ActiveWindow;
      Microsoft.Office.Interop.PowerPoint.View activeView = activeWindows.View;
      Slide activeSlide = activeView.Slide;
  
      Microsoft.Office.Interop.PowerPoint.Shapes slideShape = activeSlide.Shapes;
      Microsoft.Office.Interop.PowerPoint.Shape shape = slideShape.AddChart2(-1, XlChartType.xl3DBarClustered, -1, -1, -1, -1, true);
      Microsoft.Office.Interop.PowerPoint.Chart chart = shape.Chart;
  
      //Access the chart data
      Microsoft.Office.Interop.PowerPoint.ChartData chartData = chart.ChartData;
      chartData.Activate();
  
      //Create instance to Excel workbook to work with chart data
      Workbook workbook = chartData.Workbook;
      Microsoft.Office.Interop.Excel.Application workbookApplication = workbook.Application;
      workbookApplication.Visible = false;
      workbookApplication.WindowState = XlWindowState.xlMinimized;
  
      //Accessing the data worksheet for chart
      Worksheet worksheet = workbook.Worksheets[1];
  
      // I am adding data here
      // This is not required to reproduce this
  
      chartData.BreakLink();
      workbook.Close(true);
  }
  </code></pre>
  <p>Also, note that this issue does not occur while updating data.</p>