How to use DocX within MONO ?

Jul 18, 2011 at 3:12 PM
Edited Jul 18, 2011 at 3:14 PM

How to use DocX within MONO ?

I have a working installation of DocX with regular Visual C# 2010 Express up-and-running. But I was not able to get docx.dll (.NET component?)  working with the free MONO .NET development platform.

How to use DocX within MONO, see http://www.mono-project.com ?

I know I must "register" DocX (=make the .NET assembly viewable by the code). So that I can use the DocX functions inside my code. But how? If I try to add docx.dll it says that this compontent isn't a valid .NET assembly. I really like to see DocX working also within the free MONO platform.

Coordinator
Jul 18, 2011 at 4:40 PM

Hi,

the newest version of DocX is .net 4.0. Does Mono support .Net 4.0 dlls?

Its been years since I used Mono. I would love to know if you get this working.

Cathal

On 18 Jul 2011 15:12, "flag" <notifications@codeplex.com> wrote:
> From: flag
>
> How to use DocX within MONO ?I have a working installation of DocX with regular Visual C# 2010 Express up-and-running.But I was not able to get docx.dll (.NET component?) working with the free MONO .NET development platform.-> How can I use DocX within MONO?I know I must "register" DocX (=make the .NET assembly viewable by the code). So that I can use the DocX functions inside my code. But how?If I try to add docx.dll it says that this compontent isn't a valid .NET assembly.
>
>
Jul 18, 2011 at 4:49 PM

According to Wiki yes.

http://en.wikipedia.org/wiki/Mono_(software)

"[...] Mono's aim is to achieve full support for the features in .NET 4.0 except WPF (which the Mono team do not plan to support due to the amount of work it would need) [...]"

 

But how do I integrate the whole docx.dll things in MONO?

 

May 4, 2012 at 3:00 PM

Hi. I uploaded a patch so DocX library run on Mono. I'm currently using this library on a C# Mono application and works like a charm.

 

http://www.codeplex.com/Download?ProjectName=docx&DownloadId=375140

 

Nico.

Developer
May 4, 2012 at 3:06 PM

Thanks nico.

Dec 6, 2013 at 9:22 PM
Thanks, nicolasrod78, for your patch. It works fine, but when I try to open output docx file, I can't do this, because I get error "The file test.docx cannot be opened because there are problems with the contents". Then office tell me to fix this error, and it fix it after 2 dialog windows. Those case is for mono. Same library on windows machine works perfect. I find some differens in two same files, one from mono, one from dotnet.
There are differents in inner Content-Type file, and document.xml file. Also there are differents in encoding and line endings.
Can you help me, which differents are wrong and makes error and how to patch DocX.cs file?