Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

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

$
0
0
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.

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>