Can we use libOPC to export XML file to MS.word for IOS development?

Aug 29, 2012 at 2:11 AM

I am developing an IOS app which need to export from XML to MS.Word. I tried to find sample that work for iOS development (objective-c), but i can't. 

i want to know does libOPC provide feature for convert xml to MS.word?

If can, how can i do that?

 

Please give me some idea....

Thanks in advance....

Coordinator
Aug 30, 2012 at 8:39 PM

Hi,

Libopc can be used to create Word .DOCX document from an XML stream. And it can be done on the iPhone too. Its more or less designed to do so .;-)

I'm currently writing a series of blogposts about libopc on http://openxmldeveloper.org/. If you can be more specific about the problem I'm happy to address it in one of the posts.

Florian

Aug 31, 2012 at 2:45 AM
Edited Aug 31, 2012 at 3:41 AM

Hi Florian,

Thanks so much for reply...

My problem is i have a Xml file and i want to convert this xml file to ms.word (.docx) file. 

EX: My xml file                                                                                               

<root>  

 <book>

<title>The Best World</title>

<author>Thomas</author>

</book>

</root>

 

Convert to ms.word with content: 

--------------------

The Best World

Thomas

--------------------

I don't know how to code libOPC in iOS (objective-c).

Can you please give me some clue?

 

Thank so much.....

Sep 26, 2012 at 8:34 AM
Edited Sep 26, 2012 at 8:36 AM

Get familiar with the OOXML specs. http://openxmldeveloper.org/ has some good video's to get you started.

Make sure you read the examples on this (libopc.codeplex.com) website as it has numerous examples on how to use LibOPC to read and write docx and check out the sample folder in the code.