开发者

Exporting to MS Word in Cocoa?

Writing an application in Cocoa that wi开发者_StackOverflowll take input from the user, format it appropriately, and then export it to MS Word. Are there any references or built-in libraries available regarding how to go about this?


Yes, you can use -docFormatFromRange:documentAttributes: from NSAttributedString to do this. See Apple's documentation here.


It somewhat depends on what you are trying to achieve, but you can use Applescript to control MS Word such as creating new documents, inserting text into a document etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜