Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocX is not supported in .net core applications #31

Open
tawfiqin opened this issue Jun 6, 2016 · 20 comments
Open

DocX is not supported in .net core applications #31

tawfiqin opened this issue Jun 6, 2016 · 20 comments

Comments

@tawfiqin
Copy link

tawfiqin commented Jun 6, 2016

DocX is not supported in asp.net core 1.0

@janbernloehr
Copy link
Contributor

I looked into it and it seems that the only dependencies which are not (yet) available in .NET Core are System.Drawing.Color and System.Drawing.FontFamily. These two might be replaced by platform independent implementations. If there is interest, I can further look into it.

@mkorsukov
Copy link

FontFamily implementation was recently updated to platform independent code. So, Color is the last one.

@Jetro223
Copy link

Is someone currently working on the port?

@mkorsukov
Copy link

As I remember, the only thing to update is Color type replacement. That isn't complicated. I will try to find some time soon and review the current implementation.

@janbernloehr
Copy link
Contributor

@mkorsukov I fear there is more to do than I thought on Aug, 18. Encryption and Compressions functionality may need some work as well as everything involving Windows Security Principals.

@tobiashoeft
Copy link

Any Update? :( i need it for my solution on linux

@Jetro223
Copy link

Jetro223 commented Oct 26, 2016

I tried to port it - see https://github.com/Jetro223/DocXNETCore

  1. Colors as hex string instead of System.Drawing.Color
  2. No images
  3. No file protection

The port can load docx files and the document can be modified in memory. But the call to Save() does not work (does not write the changes to disk) and at the moment I do not understand why. Any help appreciated :-)

@Jetro223
Copy link

The version at https://github.com/Jetro223/DocXNETCore is working now. (still no images for core, no file protection, colors as hex string).

I tried to port the unit tests without luck (for now...) - so I just tested a few methods (adding paragraphs etc.)

@jasonhjohnson
Copy link

@Jetro223 Do you know if there are plans to get images working in Core?

@Jetro223
Copy link

Jetro223 commented Nov 9, 2016

@jasonhjohnson There are several projects trying to bring image processing to .NET Core e.g. https://github.com/JimBobSquarePants/ImageSharp but I did not try any of these yet

@Jetro223
Copy link

@dennishog added image support to the .NET Core port (using CoreCompat.System.Drawing)

@dominikjeske
Copy link

System.Drawing is going to .NET Core so maybe us it in future - https://github.com/dotnet/corefx/issues/20325

@jwhitmarsh
Copy link

What is the status of this? It looks like FontFamily is still dependant on System.Drawing - are there any work arounds so we can use DocX with netcore?

@iDarush
Copy link

iDarush commented Dec 3, 2017

I think project can be easily ported on dot.net core.
With https://github.com/SixLabors/ImageSharp for Paragraph.cs
and using something like
int argb = Int32.Parse(color, NumberStyles.HexNumber); Color.FromArgb(argb);
from System.Drawing from dot.net core SDK instead of ColorTranslator

@Salgat
Copy link

Salgat commented Aug 28, 2018

Sadly it looks like we're going to have to go with a license from another company due to lack of .net core support :( Really wish this was supported.

@XceedBoucherS
Copy link
Collaborator

Hi,

"Xceed Words for .NET", the commercial version of DocX, will support .NET Core application on its next release v1.6.
https://xceed.com/xceed-words-for-net/
Thank you.

@julienFlexsoft
Copy link

Hi,

"Xceed Words for .NET", the commercial version of DocX, will support .NET Core application on its next release v1.6.
https://xceed.com/xceed-words-for-net/
Thank you.

And will it also be supported on the free version?

@PrzemyslawKlys
Copy link
Contributor

As far as I got news.. No.

@XceedBoucherS
Copy link
Collaborator

#184

@xiangxingze
Copy link

有没有开源的可支持.net core 的word 组件呢?

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

No branches or pull requests