0

Is there a way to use Microsoft Office libraries to write to Excel. Looking for references or NuGet there doesn't seem to be something like that, as it is outside Universal app. Or am I missing something?

And if there isn't default way to do that, then what should I look into?

Taurib
  • 451
  • 9
  • 26
  • 1
    There are quite a few solutions to this. Do you want to do this without Office installed? If so, solutions like Closed XML (https://closedxml.codeplex.com/) are really nice. Worst case, if you have Office installed, you can simply use Interop. – Hambone Jan 13 '16 at 03:38
  • Also, check out http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp – Hambone Jan 13 '16 at 03:39

1 Answers1

0

You should use OpenXml to do this. Maybe this post answer you question. open xml reading from excel file

Community
  • 1
  • 1
TheOliver
  • 120
  • 4
  • 1
    Open XML is not WinRT compatible nor UWP compatible – Depechie Jan 14 '16 at 12:56
  • Open XML is a Standard not a library. The hardest but possible way is to work directly with XML and zip. – TheOliver Jan 14 '16 at 14:09
  • Well, for SO that would mean adding some code then :) otherwise I think we would all assume you mean the Microsoft SDK for OpenXML - which is still not compatible at the moment. – Depechie Jan 14 '16 at 14:15