如何将一些数据导出为.rtf或.doc?

发布于 2024-09-05 00:17:53 字数 109 浏览 1 评论 0原文

假设我创建了一个可以处理一些数据(文本+图像)的 GUI (Qt)。我如何以标题中列出的格式之一导出该数据。

我想导出 info .rtf 更好,因为它是免费的跨平台格式(??),不是吗?

Say I have created a GUI (Qt) that operates with some data(text+image). How I can export that data in one of listed formates in title.

I guess it is better to export info .rtf as it is free cross-platform formt(??), isn't it?

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

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

发布评论

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

评论(3

说好的呢 2024-09-12 00:17:53

请参阅有关 RTF 读写的问题。

See question about RTF reading and writing.

心是晴朗的。 2024-09-12 00:17:53

取决于你想要做什么,但也许 HTML + 单独的图像文件就足够了?

如果您想导出一个易于查看/打印等的文件,但实际上不需要将其导入回您的应用程序中,您可以制作 PDF。

Depends on what you're trying to do, but maybe HTML + separate image file would be good enough?

If you want to export a file that is easy to view/print etc., but you don't really need to import it back into your application, you could make a PDF.

书信已泛黄 2024-09-12 00:17:53

你的意思是你想要一些看起来像你的图形用户界面快照的东西吗?

在其他情况下,您可能会看到它,就像文档导出只是查看数据的另一种方式一样。一种方法是构建 GUI,另一种方法是构建某种文档并写入文件。

根据您将数据与演示文稿混合的程度,这可能很困难,也可能(相对)容易。

我不知道有什么方法可以自动为 QT gui 执行此操作,并且我怀疑您是否会找到一个可以满足您要求的工具。

Do you mean you want to have something that looks like a snapshot of your gui?

In other case you could see it like the document export is just another way to view your data. One way is building your GUI, another way is to build some sort of document and write to a file.

Depending on how much you've mixed your data with the presentation, this could be hard or (comparatively) easy.

I don't know of any way to automatically do this for a QT gui, and I doubt you'll find a tool that does what you want.

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