Tag: winnovative

Winnovative – 用超链接parsingexcel文件失败(仅限xls)

使用Winnovative的excel库我可以parsing一个包含超链接的excel文件(xls)。 它可以在程序直接在我的机器上运行。 如果我尝试上传到网站并parsing它,则完全相同的文件将失败。 这是一个逻辑的例子: // Works when bytes are parsed from a program running locally. // Fails when bytes are parsed from a file uploaded to a website public void TestRead(byte[] bytes) { try { // Parse excel file var workBook = new ExcelWorkbook(new MemoryStream(bytes)); // Save file var toSave = workBook.Save(); System.IO.File.WriteAllBytes(@"C:\Users\[User]\Downloads\Test.xls", toSave); } […]