Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Worksheets Incompatible with Excel 2007

$
0
0
Hello,

I am using Closed XML to generate Excel reports in VB.NET in the following way:

Workbook.SaveAs("myFile.xlsx")
Dim BinaryData() As Byte = File.ReadAllBytes("myFile.xlsx")
Response.AddHeader("Content-Length", BinaryData.Length - 1)
Response.AppendHeader("Content-Disposition", "attachment; filename=myFile.xlsx")
Response.BinaryWrite(BinaryData)

When I use Excel 2010 to open the file, everything works perfectly.

When I use Excel 2007 to open the file, it opens up with a bunch of gibberish.

Does anyone have any ideas about what might be casuing this?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>