有没有办法告诉PowerPoint创建图表时不打开Excel? [英] Is there a way to tell PowerPoint not to open Excel when creating charts?

查看:175
本文介绍了有没有办法告诉PowerPoint创建图表时不打开Excel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Slide.Shapes.AddChart()自动打开Excel。即使我很快做了 Chart.ChartData.Workbook.Application.Visible = false ,它仍然显示一点时间。这使得自动化图表创建容易出错,因为用户必须尝试不触摸不断弹出的Excel应用程序。

Slide.Shapes.AddChart() automatically opens Excel. Even if I quickly do Chart.ChartData.Workbook.Application.Visible = false, it still shows a little while. This makes automating chart creation error-prone as the user has to try not to touch the Excel applications that keeps popping up.

使用打开演示文稿WithWindow = false 在创建新图表时仍然会打开Excel。

Opening a presentation with WithWindow = false will still open Excel when creating new charts.

推荐答案

而微软对此不感兴趣。这是UI的功能。

This behavior is "by design" and Microsoft is not interested in changing. This is the way the UI functions.

您可以做的是在Excel中创建图表(使用interop或OpenXML),然后导入(插入)将文件复制到PowerPoint中。

What you could do would be to create the chart in Excel (using either the interop or OpenXML), then import (insert) that file into PowerPoint.

MSDN

这篇关于有没有办法告诉PowerPoint创建图表时不打开Excel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆