title: Embed Excel into Powerpoint 2007 using openxml and C#
body: <p>Running into two problems that I'm hoping someone can assist.</p>
  
  <p>I am trying to embed a excel 2007 file in relationship with a chart into pptx 2007 programmatically using openxml. 
  I manually created a empty PPTx contains one slide then i did:</p>
  
  <pre><code>EmbeddedPackagePart newEmbeddedPackagePart = slidePart.AddNewPart&lt;EmbeddedPackagePart&gt;("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","rId10");
  newEmbeddedPackagePart.FeedData(File.Open(@"C:\Book1.xlsx", FileMode.Open));
  Drawing.Charts.ExternalData newEmbeddedPackagePart = new DocumentFormat.OpenXml.Drawing.Charts.ExternalData();
  newEmbeddedPackagePart.Id = "rId10";
  </code></pre>
  
  <p>Which is basically how the SDK code reflector wrote it, save except the binary data was in a string (where I am opening a file).  However, this piece of code places a "package.bin" file in xl\drawings\charts\embeddings\ whereas my manual embedding puts the file into ppt\embeddings.  Has anyone experienced this problem, and found a way to overcome the incorrect placement of the file, as well as the ".bin" extension?</p>
  
  <p>Thanks in advance!</p>