OpenXML Spreadsheet corrupted in Excel
<p>I am working with OpenXML (2.5) to create a customized spreadsheet.  On the VM I am using, I only have Open Office in which the OpenXML spreadsheet was working fine (with custom formatting and everything).  However, when moving the file to a machine with Microsoft Office, each version of the file failed to open due to corrupted data. I took out all the customization and still had a corrupted result (which still worked in Open Office). </p>

<p>This is the code I have for a bare bones spreadsheet file, which, again, works in Open Office but is seen as corrupt in Excel.</p>

<pre><code>public string CreateGrid()
{
    var path = Path.GetTempFileName();
    var document = SpreadsheetDocument.Create(path, SpreadsheetDocumentType.Workbook);
    var workbookpart = document.AddWorkbookPart();

    workbookpart.Workbook.Save();
    document.Close();
    return path;
}
</code></pre>

<p>The error I get is 'An invalid character was found in the text content.'
Line: 1
Column: 1
File Offset: 0
As you can see in the code, I'm not adding any text as of yet, it I'm fairly certain it isn't illegal characters.  Any help would be greatly appreciated.</p>