将 html/css 打印媒体显示转换为具有适当分页符的 .doc?

发布于 2024-08-28 07:30:46 字数 209 浏览 3 评论 0原文

我希望将在印刷媒体上看起来不错的页面导出为文字。

这可以自动完成吗?或者大部分可以通过 Office api 自动完成?

另一种方法是创建一个程序来读取我们所有的样式元数据和字体元数据并转换为单词并强制下载。

问题是我们的样式元数据已经是为 CSS 构建的,毕竟它是一个 Web 应用程序。编写我自己的 css 解析器,听起来并不是一个很好的时间利用方式。

I'm looking to export a page that looks good in print media, to word.

Can this be done automatically, or mostly automatically with office apis?

The alternative is to create a program that reads all our style meta data and font meta data and convert to word and force a download.

The issue is our style metadata is already built for css, its a web app after all. And writing my own css parser, doesn't sound like a good use of time.

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

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

发布评论

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

评论(2

一袭白衣梦中忆 2024-09-04 07:30:46

我知道这听起来太简单了,难以置信,但我相信您可以简单地将“.html”文件重命名为“.doc”以强制它在 Word 中打开,并让 Office 的 html 渲染负责其余的。

I know this sounds too simple to be true, but I belive you can simply rename a ".html" file to ".doc" to force it to open in word, and let office's html rendering take care of the rest.

染墨丶若流云 2024-09-04 07:30:46

如果它是出于报告目的,并且您认为将来可能会使用更多相同的功能,那么您可以将报告服务之类的东西视为创建可以以各种格式下载的报告的方式。我不能 100% 确定最新版本是否允许创建 .doc 文件,但您可以购买插件来允许这样做。

If it's for reporting purposes, and you think you might have use for more of the same in the future, you could look at something like reporting services as a way of creating a report that can be downloaded in various formats. I'm not 100% sure if the newest version allows the creation of .doc files, but you can purchase plugins to permit this.

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