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 for Unity / iOS #428

Open
MattBell96 opened this issue Apr 1, 2022 · 5 comments
Open

DocX for Unity / iOS #428

MattBell96 opened this issue Apr 1, 2022 · 5 comments

Comments

@MattBell96
Copy link

Hi there, I am developing an application for unity3D using docX. My application works just fine in the unity editor.
But when I try to build it (Targeting iOS) it does not build. It gives me:

ArgumentException: The Assembly WindowsBase is referenced by Xceed.Document.NET ('Assets/Plugins/Xceed.Document.NET.dll'). But the dll is not allowed to be included or could not be found.

I then add WindowsBase.dll to my plugins folder to get past this. But get this:

Loading assembly failed: "Assets/Plugins/WindowsBase.dll" reason: File does not contain a valid CIL image

Despite this Error I am able to build to iOS. However when I run the app and try to create a new document i get this in Xcode:

NullReferenceException: Object reference not set to an instance of an object.
at System.IO.Packaging.Package.Open (System.IO.Stream stream, System.IO.FileMode packageMode, System.IO.FileAccess packageAccess) [0x00000] in <00000000000000000000000000000000>:0
at Xceed.Document.NET.Document.PrepareDocument (Xceed.Document.NET.Document& document, Xceed.Document.NET.DocumentTypes documentType) [0x00000] in <00000000000000000000000000000000>:0
at Xceed.Words.NET.DocX.Create (System.String filename, Xceed.Document.NET.DocumentTypes documentType) [0x00000] in <00000000000000000000000000000000>:0

Any help would really be appreciated.

@XceedBoucherS
Copy link
Collaborator

Hello,
The OpenSource version of DocX has only been tested for Windows, it's a .NET Framework version.
The Commerical version of DocX, named "Xceed Words for .NET" contains a .NET5 and a .NETStandard version which may work better in iOS.

I invite you to try it here : https://xceed.com/en/our-products/product/words-for-net
You can use it for free for 15 days.

Thank you.

@ibrahimpenekli
Copy link

@MattBell96 any updates?

@XceedBoucherS
Copy link
Collaborator

hi,
Have you tried the latest version on gitHub : v2.3 ?
It includes .NET5 dlls, which works on .NET5/6 applications.
Does it works better in you environment ?
Thank you

@ibrahimpenekli
Copy link

Unity does not support .NET5/6: https://docs.unity3d.com/2021.3/Documentation/Manual/dotnetProfileSupport.html

It depends on 'WindowsBase.dll' which is not available on iOS/macOS etc.
But, it works fine on Editor/Windows.

@XceedBoucherS
Copy link
Collaborator

Ok, We'll have to test, but this product is mainly built for Windows.
Thank you.

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

3 participants