Last post Jan 02, 2018 11:04 AM by thomasaelbrecht
Apr 16, 2017 04:06 PM|thomasaelbrecht|LINK
I'm really new to .NET Core and we have to make a webapplication for some company. We have an Excel-template which we can fill in with some data, then we have to create a PDF from this Excel. We use Shaman.EPPlus to make the Excel.
Now we want to create a pdf from that excel, but every package we try seems to be not compatible with .NET Core 1.0. I tried iText, PDFSharp and some other. Does anyone know a package which works fine with .NET Core 1.0?
And does anyone know how to open a PrintDialog? Because that won't work as well. I can create one, but when I call ShowDialog() I get some error about an assembly. Has anyone a solution?
Apr 16, 2017 10:20 PM|Dmitry Sikorsky|LINK
Hi! Have you tried NodeJS solution? Like this one: https://blog.decayingcode.com/post/cross-platform-pdf-generation-with-asp.net-core-and-phantomjs/
Apr 17, 2017 07:38 AM|thomasaelbrecht|LINK
No, we haven't tried that. But the problem is that we don't know how NodeJS works (we're going to learn this next year) and we don't have time now to learn it...
Or is this solution easy? Because at first sight, it seems difficult...
Apr 17, 2017 09:03 AM|Dmitry Sikorsky|LINK
I wasn't be able to find pure C# server-side ASP.NET Core package to generate PDF, but there are a lot of them that works on .NET 4.5-4.6. So if you need to target just .net standard I think using NodeJS generator might work, but if you can target .net4.5-4.6
in your ASP.NET Core application it would be simpler to use old existing packages.
Apr 17, 2017 09:17 AM|thomasaelbrecht|LINK
I already target .NET 4.6 in my project. I found that solution on the internet, but that didn't work for me. I hope we find a package that works on ASP.NET Core...
Apr 18, 2017 04:15 AM|Edward Z|LINK
I agree with Dmitry, as researching, we could not find any library for Asp.net Core to make a pdf at present.
If you target Core, you may need to try NodeJS.
Dec 28, 2017 02:52 PM|Andruhovski|LINK
for .NET v.17.12 now works on .NET Core 2.0.
work for Aspose as Developer Advocate.
Jan 01, 2018 07:33 PM|bruce (sqlwork.com)|LINK
Jan 02, 2018 11:04 AM|thomasaelbrecht|LINK
I don't need it anymore, we solved the problem with making a simple Excel. A pdf wasn't necessary anymore...
But I thank everyone for the responses!