在 ColdFusion 7 中使用 cfcontent,如何以横向模式输出 MS Word 文档?
标题是非常不言自明的。我正在使用 cfcontent 将页面输出为 application/msword 文件类型,我想知道如何使其默认为横向模式,而不需要下载第三方库。
The title is pretty self explanatory. I'm using cfcontent in ColdFusion 7 to output a page as an application/msword file type and I want to know how to make it default to landscape mode without resorting to downloading a third party library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果内容只是 html,您可以使用 mso/xml 模式。还有比这更多的内容,但“mso-page-orientation”属性应该可以解决问题。
为了快速开始,请在 MS Word 中创建一个非常简单的文档。更改方向等并将其另存为 html。生成的 html 会有点冗长,但很容易理解。
If the content is just html, you could use the mso/xml schemas. There is a bit more to it than this, but the "mso-page-orientation" property should do the trick.
For a good quick start, create a very simple document in MS Word. Change the orientation etcetera and save it as html. The generated html will be a bit verbose, but is pretty easy to understand.
如果您要创建基于 rtf 的文档,请查看 此页面了解一些想法:
该页面上有其他站点的链接,包括 rtf 规范。
If you are creating an rtf-based document, review this page for some ideas:
There are links to other sites including the rtf specification on that page.