简体   繁体   English

PDF,HTML和SVG转换在Aspose.Cells中不起作用

[英]PDF, HTML and SVG conversions are not working in Aspose.Cells

I have a .NET Core 2.0 project and use Aspose.Cells version 18.2.0. 我有一个.NET Core 2.0项目,并使用Aspose.Cells版本18.2.0。 When I try to convert valid XLS to PDF, HTML or SVG, it fails. 当我尝试将有效的XLS转换为PDF,HTML或SVG时,它将失败。

I'm using this code: 我正在使用此代码:

Workbook doc = new Workbook(inputStream); // my input file stream
doc.Save(outputStream, SaveFormat.Pdf);

Instead of SaveFormat.Pdf you can try Svg and Html 您可以尝试使用Svg和HTML代替SaveFormat.Pdf

As result of PDF conversion I get PDF file with "Invalid file structure", as Pdf Readers say. PDF转换的结果是,如Pdf读者所说,我得到的PDF文件具有“无效的文件结构”。

As result of SVG conversion I get SVG file that any browser is unable to open. SVG转换的结果是我得到了任何浏览器都无法打开的SVG文件。

As result of HTML conversion I get Html file that contains just a lot of random symbols. 作为HTML转换的结果,我得到的HTML文件只包含很多随机符号。

I've noticed that this issue appears only in .NET Core project, and in .NET Framework 4.6.1 everything works fine. 我注意到,此问题仅出现在.NET Core项目中,并且在.NET Framework 4.6.1中,一切正常。 CSV and TXT conversions are fine on both Core and Framework. CSV和TXT转换在Core和Framework上都很好。

So my question is: Is there any workaround to get it working on .NET Core or only option is to use .NET Framework until it gets fixed? 所以我的问题是:是否有任何变通办法可以使它在.NET Core上运行,或者唯一的选择是使用.NET Framework,直到它得到修复? Or maybe I missed something in docs? 还是我错过了文档中的某些内容?

Update-3 更新3

Aspose.Cells for 18.4 and onward supports all the features in .NET Core/Standard as it supports in .NET 2.0/4.0. 18.4及更高版本的Aspose.Cells支持.NET 2.0 / 4.0中的所有功能。 Please check the updated article from the following link. 请通过以下链接检查更新的文章。

https://docs.aspose.com/display/cellsnet/Feature+Overview https://docs.aspose.com/display/cellsnet/Feature+概述


Update-2 更新2

Please download and try the Aspose.Cells for .NET - April Release ie 18.4 from the following link and it should fix most of your issues. 请从以下链接下载并尝试Aspose.Cells for .NET- April版本,即18.4 ,它应该可以解决您的大多数问题。

https://www.nuget.org/packages/Aspose.Cells/18.4.0 https://www.nuget.org/packages/Aspose.Cells/18.4.0

Let us know if you find any issue, we will look into it and help you asap. 让我们知道,如果您发现任何问题,我们将调查并尽快帮助您。


Update-1 更新1

We are afraid, these features are not supported at the moment but we will support them in future as soon as possible. 我们担心,目前暂时不支持这些功能,但将来会尽快支持它们。

Please see the Feature Overview page on Aspose.Cells for .NET documentation for more help. 请参阅Aspose.Cells for .NET文档上的“ 功能概述”页面以获取更多帮助。

Note: I am working as Developer Evangelist at Aspose 注意: 我在Aspose担任开发人员布道者

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM