Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Convert excel to PDF (in a .NET Core project) #29

Closed
MaximCrabbe opened this issue Oct 2, 2017 · 2 comments
Closed

Convert excel to PDF (in a .NET Core project) #29

MaximCrabbe opened this issue Oct 2, 2017 · 2 comments
Labels

Comments

@MaximCrabbe
Copy link

Hello,

It is almost simular to this issue:
#20
However, Aspose.Words (or Apose.Cells) or any other lib that I try to add to my project (with nuget manager) fails to install since I was using .NET Core 1.x. Now I updated to .NET core 2.x and now nuget allows me to install them but now I get the exception:

System.TypeLoadException: 'Could not load type 'System.Drawing.FontStyle' from assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'

When the debugger hits the line to convert.
I think this is because the nuget packages have dependencies on .NET 4.x and .NET core doesn t 'know' about them because .NET 4.X is not .NET Core.
Any solution for this you might think of?
Any help would be much appreciated since I searched on many places already.

Thanks in advance!

@yang-xiaodong
Copy link
Member

In my experience, there is no way to solve the problem at present in .net core, because .net core are not fully support System.Drawing now.

@MaximCrabbe
Copy link
Author

Ah that explains it. There is no roadmap right now as far as I was able to find that says that .net core will support System.drawing in the near future. That is kinda sad I ll guess I ll have to create a .net oldschool microservice to convert them which will be a pain in the *** since Filetransfers over HTTP never seems to go smooth (not perfomancewise but programming wise.)
Thanks for the info anyway!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants