Support for Silverlight (or, even better, portable class library)?

Sep 20, 2012 at 9:45 PM

Just wondering if you ever plan to support Silverlight or, even better, make it a portable class library so that it can be reused everywhere (.NET/WinRT/SL)?

Apr 29, 2014 at 1:55 PM
I wondered about this as well.

I've managed to successfully perform the following:
  • Download the NPOI source, rebuild the 'AllnOne' folder solution to a DLL targetting .NET framework 4.5
  • Reference this DLL from a PCL
  • Use that PCL from a Windows Runtime Component for basic spreadsheet creation
What I'm hoping to do:
  • Fork this and copy the code into a PCL
  • Add in neccessary changes/conditional compilation stuff to allow building as a PCL
What I've found from the process above:
  • There are 3 main build errors:
    a) Use of serializable attribute (I believe this can be substituted for DataContract in a PCL)
    b) Use of non PCL types, namely ArrayList and Hashtable, these I think can be swapped for List and Dictionary, but it could take some time to swap all the references
    c) Lots of references to System.Drawing stuff. I think the only way to handle this would be to extract this drawing code out of the PCL and reference it as a seperate non PCL library. unsure whether this would break the core functionality as I don't know the code too well. Will investigate in the coming weeks.
Hopefully this is of some use.
Coordinator
May 17, 2014 at 11:42 PM
No, man. AllInOne code are too old. Please try https://github.com/tonyqus/npoi. This is the latest code.