简体   繁体   中英

Mono for Android, reading and writing to XLSX

I am developing an app using Mono for Android. I need capabilities to read and create XLSX (Excel) files. I have tried with EPPlus and NPOI, and had a quick look at Microsoft's Open XML SDK and found the following problems:

  1. EPPlus requires the WindowsBase assembly which, AFAIK, i can't use this assembly in Mono
  2. NPOI requires System.Drawing, which doesn't seem to work in Mono
  3. Open XML SDK requires the WindowsBase assembly.

So i am running out of ideas, is there any library that i can run under Mono that supports XLSX? Is there any workaround to get these libraries working?

The thing i need to be able to do is to 1. Insert images 2. Manipulate cell texts

I created a fork of NPOI without references to System.Windows.Forms, System.Drawing and System.Configuration making it suitable for use with Xamarin. So far it's working well with the Xamarin.Mac unified API.

Note that this is achieved by removing capabilities rather than replacing them, but most core functionality should be unaffected.

I put a link below to a component on the Xamarin component store that will allow you to edit / read / write XLSX or XLS files.

Component

试试这个OpenXmlSdk端口到Xamarin https://github.com/wotzisname/open-xml-sdk-xamarin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM