English 中文(简体)
Exporting to MS Word in Cocoa?
原标题:

Writing an application in Cocoa that will 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.





相关问题
ASP.net C# - WINWORD.exe

I am playing with Microsoft word document from ASP.NET/C# program. My programs opens up word docs internally. using app = new Word.Application(); app.Documents.Open it creates a instance of ...

Exporting to MS Word in Cocoa?

Writing an application in Cocoa that will 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 ...

Creating object instances globally

this is probably something I should know, but I m puzzled by this. I m trying to create some objects and being able to access and modify these globally. I tried to create a Public Module and declare ...

Winforms app which must include some freehand drawing

We have a customer who needs some simple forms (probably we would be creating a simple Winforms app for them) but there is a requirement to capture a mix of input fields plus some freehand drawing. It ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签