如何使用 VBA 将甘特图从 MS Project 导出到 MS Word
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1600042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I export a Gantt Chart from MS Project to MS Word using VBA
提问by user191093
Using MS Project 2003 i want to export the "View | Gantt Chart" to MS Word (2000) using VBA. How can I achieve this?
使用 MS Project 2003 我想使用 VBA 将“查看 | 甘特图”导出到 MS Word (2000)。我怎样才能做到这一点?
回答by Web Based Project Management
In Project, Use Edit, Copy Picture. there's a camera icon on the standard toolbar (the top one) ... you can take a "photo" of your gantt chart and use that in word Version 2003 also has a Wizard for this export HTH I always select the task rows and then when using the "camera" select the option of selected tasks.
在项目中,使用编辑,复制图片。标准工具栏上有一个相机图标(最上面的那个)...您可以拍摄甘特图的“照片”并在 word 版本 2003 中使用它也有一个用于此导出的向导 HTH 我总是选择任务行,然后使用“相机”时选择所选任务的选项。
回答by popester
Try using the Copy Picture object model calls. You can either output to the clipboard or save a .gif.
尝试使用复制图片对象模型调用。您可以输出到剪贴板或保存 .gif。

