Code Monkey home page Code Monkey logo

Comments (20)

janbernloehr avatar janbernloehr commented on July 4, 2024 10

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.

from docx.

XceedBoucherS avatar XceedBoucherS commented on July 4, 2024 6

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.

from docx.

Jetro223 avatar Jetro223 commented on July 4, 2024 3

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

from docx.

jwhitmarsh avatar jwhitmarsh commented on July 4, 2024 2

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?

from docx.

PrzemyslawKlys avatar PrzemyslawKlys commented on July 4, 2024 2

As far as I got news.. No.

from docx.

mkorsukov avatar mkorsukov commented on July 4, 2024 1

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

from docx.

mkorsukov avatar mkorsukov commented on July 4, 2024 1

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.

from docx.

Jetro223 avatar Jetro223 commented on July 4, 2024

Is someone currently working on the port?

from docx.

janbernloehr avatar janbernloehr commented on July 4, 2024

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

from docx.

tobiashoeft avatar tobiashoeft commented on July 4, 2024

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

from docx.

Jetro223 avatar Jetro223 commented on July 4, 2024

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

from docx.

jasonhjohnson avatar jasonhjohnson commented on July 4, 2024

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

from docx.

Jetro223 avatar Jetro223 commented on July 4, 2024

@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

from docx.

Jetro223 avatar Jetro223 commented on July 4, 2024

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

from docx.

dominikjeske avatar dominikjeske commented on July 4, 2024

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

from docx.

iDarush avatar iDarush commented on July 4, 2024

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

from docx.

Salgat avatar Salgat commented on July 4, 2024

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.

from docx.

julienFlexsoft avatar julienFlexsoft commented on July 4, 2024

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?

from docx.

XceedBoucherS avatar XceedBoucherS commented on July 4, 2024

#184

from docx.

xiangxingze avatar xiangxingze commented on July 4, 2024

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

from docx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.