用缩略图保存Word
我想在资源管理器中查看 Word 文件的缩略图。不幸的是,我必须使用“保存并预览”选项保存每个Word文档。(在Word保存对话框中)
现在我想编写一个使用Word 2007的小工具(VB6,VB.NET,C#,...) com 对象自动添加缩略图。不幸的是,我找不到启用 Word 预览的选项。
I want to see thumbnails from Word files in my explorer. Unfortunally i have to save every Word document with the "save with preview" option.(In the Word save dialog)
Now I want to write a little tool(VB6,VB.NET,C#,...) that uses a Word 2007 com object to automatically add thumbnails. Unfortunally i can't find a option to enable the Word preview.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
宏:
编写具有相同功能的 VBA 宏/脚本可能同样容易。优点是你可以记录开场、设置选项并保存为宏。这将为您提供开始使用的基本代码,并且 VBA 对您来说可能会很容易,因为您已经了解 VB6 和 VB.NET。
它甚至可以帮助您在 COM 应用程序中找到该选项(如果可用)。
VSTO:我不知道在哪个版本中引入了预览选项,但据我所知,COM接口的开发有点落后于.NET addin接口。因此,如果您在界面中根本找不到该选项,您可能需要 VSTO(Visual Studion Tools for Office)来开发一个插件,可以使用 Word 提供的 .NET 界面从内部控制 Word。
Macro:
It might be just as easy to write a VBA macro/script that does the same. The advantage is that you can record the opening, setting the options and saving, as a macro. That will give you the basic code to start with, and VBA will probably be easy for you as you already know VB6 and VB.NET.
It might even help you find the option in the COM application if it is available at all.
VSTO: I don't know in what version the preview option was introduced, but as far as I know, the development of the COM interface is somewhat behind of the .NET addin interface. So, if you can't find the option at all in the interface, you'd probably need VSTO (Visual Studion Tools for Office) to develop an addin that can control Word from the inside using the .NET interface that Word provides.