将 Word 文档 (*.doc) 转储到文本?
我正在寻求将 Word 文档 (*.doc) 转储到文本的帮助?我使用的是 Delphi 2010。
如果解决方案是组件或库,它应该是免费或开源组件或代码库。
I'm looking for help in dumping word document ( *.doc) to Text? I am using Delphi 2010.
If the solution is a component or library, it should be a free or opensource component or code library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要第三方组件。检查这些示例
使用带有
Text
属性的Range
函数或使用剪贴板,您必须选择所有文档内容,复制到剪贴板并使用 < a href="http://docwiki.embarcadero.com/VCL/en/Clipbrd.TClipboard.AsText" rel="noreferrer">
Clipboard.AsText
you don't need a third party component. check these samples
Using the
Range
function wich comes with aText
propertyor using the clipboard, you must select all the doc content, copy to the clipboard and retrieve the data using
Clipboard.AsText