4

I want to create report(e.g. PDF,Excel,Word) in ASP.NET Core 1.0, but NPOI and OpenXML is not support ASP.NET Core.

Neallin
  • 93
  • 1
  • 1
  • 5

4 Answers4

2

There is an issue for .NET Core support for OpenXML (https://github.com/OfficeDev/Open-XML-SDK/issues/65). Some work has to be done before it is ready. Someone who had your demand as well ported it to .NET Core and published his project on GitHub (https://github.com/xrkolovos/Open-XML-SDK-for-NET-Platform-Standard). I have not tried it myself, but it may be worthwile to try.

UPDATE:

Current releases of OpenXML support .NET Core. Therefore the second GitHub project is obsolete now.

Ralf Bönning
  • 14,515
  • 5
  • 49
  • 67
2

For PDF PdfReport.Core could be a solution. I can confirm that it works under netcoreapp1.1. It also should be able to export to Excel, XML and CSV (NOT tested by me).

Please check my answer here: https://stackoverflow.com/a/42023039/1719087

Community
  • 1
  • 1
Tomino
  • 5,969
  • 6
  • 38
  • 50
1

There is a CI build that works with .Net Core 1.1 at

https://github.com/OfficeDev/Open-XML-SDK

the specific nuget package is at this feed:

https://dotnet.myget.org/F/open-xml-sdk/api/v3/index.json

Mark Redman
  • 24,079
  • 20
  • 92
  • 147
0

If your application is fine to run on windows only, then using ASP.NET Core with the full .net framework let you use NPOI and OpenXML. With this approach you can start now with the new Microsoft web framework in the hope that NPOI or OpenXML will support .NET Core in the near future.

Ralf Bönning
  • 14,515
  • 5
  • 49
  • 67