如何在 Objective C 中编写 MsWord (.doc) 文件?

发布于 2024-09-10 04:48:55 字数 163 浏览 1 评论 0原文

我需要在 Objective C 中编写纯 Msword 文件。 到目前为止我一直在编写 .txt 文件,但是当我编写 .doc 文件时,我面临所有编码方案的编码问题。 Microsoft 在 Visual Studio 中提供了库来处理 Xcode 中不可用的 .doc 文件。 那么有没有什么办法可以实现呢?

I need to write pure Msword file in objective C.
I have been writing .txt file till now but when i write a .doc file i'm facing encoding issues with all encoding schemes.
Microsoft provide library in visual studio to play with .doc files which is not available in Xcode.
So is there any way to make it happen?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

べ映画 2024-09-17 04:48:55

您可以从 OpenOffice 项目等中提取代码。这是 C++ 代码,但您可以使用包装器。这将是大量的工作。

You can extract the code from e.g. OpenOffice project. This is C++ code, but you can use a wrapper around. This will be a lot of work.

请爱~陌生人 2024-09-17 04:48:55

如果这是您的选择:
在服务器上,使用 Microsft VSTO 使用 ServerDocument 类创建文档(doc、els、ppt...)并传递您在客户端收集的数据。然后您下载该文件和您的手机。

If it's an option for you:
On the server use Microsft VSTO to create a document (doc,els,ppt...) using ServerDocument class and passing the data that you collect on the client. Then you download that file and your phone.

意中人 2024-09-17 04:48:55

听起来您正在尝试移植 MS Word。基本上,您需要编写 XML 文件并以特定方式压缩它们。在此处查看标记规范
http://msdn.microsoft.com/en-我们/library/cc313105%28office.12%29.aspx

Sounds like you are trying to port MS word. Basically u need to write XML files and zip them in a particular manner. Check out the markup specification here
http://msdn.microsoft.com/en-us/library/cc313105%28office.12%29.aspx

天暗了我发光 2024-09-17 04:48:55

如果是.docx,您可以编写一个XML文件并重命名它。对于 .doc,您可能必须使用自己的包装器来完成它。

if it's .docx, you may compose an XML file and rename it. With .doc you may have to do it with your own wrapper.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文