简体   繁体   中英

Windows 8 Metro Style App - Editing Word Documents

I am trying to read/write to a word (.docx) in a W8 metro app. For normal .NET Applications there are many libraries, but non of them are avaliable for Windows Store apps (eg Open XML SDK 2.5 is not supported in RT Apps).

The only way, it might work is via the xml document using Windows.Data.Xml.Dom which is going to be a lot of work. Has anyone accessed word documents with the Windows.Data.Xml.Dom (or any other library) and would like to share his code?

I don't have any first hand experience, but I'd take a look at the following two alternatives before falling back to raw XML processing:

  • Your best bet could be DocIO from Syncfusion . It's not free but the price is really reasonable considering how much work it could save you. And there's even a free beta available.
  • Chris Klug created a simple OpenXML library for Silverlight . You could check if it does what you need and then try porting it to WinRT since the source is available.

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