DocX icon indicating copy to clipboard operation
DocX copied to clipboard

DocX is not supported in .net core applications

Open tawfiqin opened this issue 9 years ago • 20 comments
trafficstars

DocX is not supported in asp.net core 1.0

tawfiqin avatar Jun 06 '16 09:06 tawfiqin

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.

janbernloehr avatar Aug 18 '16 17:08 janbernloehr

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

mkorsukov avatar Oct 05 '16 04:10 mkorsukov

Is someone currently working on the port?

Jetro223 avatar Oct 18 '16 07:10 Jetro223

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.

mkorsukov avatar Oct 21 '16 20:10 mkorsukov

@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.

janbernloehr avatar Oct 23 '16 17:10 janbernloehr

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

tobiashoeft avatar Oct 25 '16 09:10 tobiashoeft

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 avatar Oct 26 '16 13:10 Jetro223

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.)

Jetro223 avatar Oct 29 '16 22:10 Jetro223

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

jasonhjohnson avatar Nov 08 '16 19:11 jasonhjohnson

@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 avatar Nov 09 '16 09:11 Jetro223

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

Jetro223 avatar Feb 23 '17 08:02 Jetro223

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

dominikjeske avatar Jun 20 '17 10:06 dominikjeske

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?

jwhitmarsh avatar Sep 29 '17 14:09 jwhitmarsh

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

iDarush avatar Dec 03 '17 10:12 iDarush

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.

Salgat avatar Aug 28 '18 18:08 Salgat

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.

XceedBoucherS avatar Nov 06 '18 14:11 XceedBoucherS

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?

julienFlexsoft avatar Nov 12 '18 09:11 julienFlexsoft

As far as I got news.. No.

PrzemyslawKlys avatar Nov 12 '18 12:11 PrzemyslawKlys

https://github.com/xceedsoftware/DocX/issues/184

XceedBoucherS avatar Nov 12 '18 16:11 XceedBoucherS

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

xiangxingze avatar Apr 22 '19 03:04 xiangxingze