title: delphi ole excel container, save file
body: <p>what is the syntax for this <a href="https://stackoverflow.com/questions/3106188/programmatically-save-an-excel-file-using-ole">c++ question</a> in Delphi?</p>
  
  <p>After using an oleContainer, and trying to do SaveDocumentAs which didn't work. I thought this might be a good alternative.</p>
  
  <p>update: thank you for the translation, however the excel file goes curropted after the call</p>
  
  <pre><code>var
    ExcelOle: TOleContainer;
  begin
    ExcelOLE.CreateObjectFromFile(FileName, False);
    ExcelOle.OleObject.application.workbooks[1].save;
  end;
  </code></pre>