2

Is it possible to read a .doc (MSWord) file in ObjC ? Or Is there any other way to read the word file ?

Thanks

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
Biranchi
  • 16,120
  • 23
  • 124
  • 161
  • 1
    Please: Objective-C is a language, not a platform or a framework... – Grant Paul May 11 '10 at 04:26
  • 1
    A lot of languages come with reasonably rich standard libraries, so this way of phrasing the question is common: "How do I open a .doc file in [Ruby/PHP/OCaml]?" Unfortunately, Objective-C is not one of those languages with a good standard library. In fact, the language itself has essentially nothing but the C standard library. – Chuck May 11 '10 at 16:52

3 Answers3

4

It depends on your platform. The iPhone has very different rich text capabilities than OS X. UIWebView can open them on the iPhone. With Cocoa on Mac OS X, you can just use NSAttributedString.

Chuck
  • 234,037
  • 30
  • 302
  • 389
0

If you just want to display it to the user, you can put it in a UIWebView. See this tech note for details.

Jeff Kelley
  • 19,021
  • 6
  • 70
  • 80
0

UIWebView, not only can it display word docs, it can also display: - Images - PowerPoints - Excel - Any other file (Except project files, like xcodeproj)

Eman yalpsid
  • 511
  • 1
  • 5
  • 8