powerpoint

How can one programmatically read the graph values from a Powerpoint presentation using Apache's POI?

坚强是说给别人听的谎言 提交于 2019-12-07 19:32:54
问题 I have a Powerpoint presentation with an graph which I want to access using Java and Apache's POI. When I edit the graph data using Powerpoint an Excel window opens with the values, I want to access these values from my Java application. How does one access the values of the graph programmatically? 回答1: In the first part we need to navigate to an XSLFChart object: final String filename = "resources/fptbenchmark/Powerpoint Import.pptx"; final XMLSlideShow ppt = new XMLSlideShow(new

Add a Hyperlink to a SmartArt Node

為{幸葍}努か 提交于 2019-12-07 16:21:39
问题 In the Excel (also PowerPoint and Word) user interface it's possible to assign a hyperlink to a SmartArt node, or text in a node: Recording these steps in a macro yields an empty procedure. Trying to use logic with the object model yields no useful result (see code below). I tried the following three approaches: A SmartArtNode has a Shapes property and one can extract a Shape object... But the type belongs to the Office object model ( Office.Shape ) and cannot be coerced (that I can find) to

PowerPoint 2007 SP2, ExportAsFixedFormat in PowerShell?

血红的双手。 提交于 2019-12-07 15:10:48
Yesterday I was trying to batch convert a group of PPTs into PDFs for a friend, and I decided to have a look at PowerShell, since it's been sitting on my HD for a while. Here's the code I've come up with. $p = new-object -comobject powerpoint.application # I actually don't know why I have to set the window to visible, # but it doesn't work otherwise, anyway, it's not the real problem I have $p.visible = 1 $f = $p.presentations.open('\some\file.ppt') $f.ExportAsFixedFormat('\some\newfile.pdf', 2) 2 is for PDF Since the "brute force" method didn't work ("type mismatch") I tried to import the

Delphi - OleContainer - PowerPoint - AutoPlay

孤人 提交于 2019-12-07 13:30:47
问题 Good afternoon :-), in my application I use OleContainer to view presentation from Microsoft Powerpoint. This code I use to load and run presentation file : with oleContainer do begin Parent := mediaPanel; Left := 0; Top := 0; Width := mediaPanel.Width; Height := mediaPanel.Height; CreateObjectFromFile('C:\Users\Nanik\Desktop\Present.ppt', false); Iconic := false; Visible := true; Run; end; The presentation was created as autoplay slideshow (in Microsoft PowerPoint working), but in my

detect events on powerpoint shapes from C#

萝らか妹 提交于 2019-12-07 11:40:02
问题 is it possible to detect the events which happen on a powerpoint shape like, let say, an arrow??? Until now, I've found the only possibilities are selecteditemchanged, beforerightclick and beforedoubleclick, but can't find a way to detect others like mouseover, resizeend, or positionchanged. I was able to detect the click event on a Forms.CommandButton.1 ole object, but it works only on ppt presentation mode, not in ppt design mode. My main goal is to embed a winform -or a wincontrol- into a

How to make a progress bar in powerpoint vba?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 07:07:34
问题 How can I make a progress bar with PowerPoint VBA? It should be done as an animation on a slide. 回答1: Is this what you're looking for? http://www.pptfaq.com/FAQ00597.htm 回答2: This one will put the bar at the top and prevent it from appearing on the first slide (unlike the pptfaq script): http://www.faronics.com/news/blog/how-to-add-a-progress-bar-to-powerpoint/ In Power Point, go to Tools > Macro > Visual Basic Editor. In Office 2010 you might need to activate the Developer tab in order to

How to export movie from Powerpoint 2010?

独自空忆成欢 提交于 2019-12-07 03:28:55
问题 How to export embedded video from powerpoint 2010 to external file programmatically using MS Office PIA (Primary Interop Assemblies) or other ways? Embedding video in presentation is a new feature in Powerpoint 2010 and I Can't find solution for this. 回答1: PPTX files are just compressed archives. The embedded video should be stored within it somewhere, possibly under the media folder but I'm not sure. You can use something like DotNetZip to extract the media and save to where you like. Note

How to programmatically read and change slide notes in PowerPoint

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 02:48:50
问题 How do you get the Notes text from the current PowerPoint slide using C#? 回答1: I believe this might be what you are looking for: string s = slide.NotesPage.Shapes[2].TextFrame.TextRange.Text slide.NotesPage.Shapes[2].TextFrame.TextRange.Text = "Hello World" 回答2: Here is my code that I use for getting the slide notes. Still developing it, but seems to do the trick for the time being. Even in my simple test PPT the slide notes are not always the [2] element in the shapes array, so it is

PPT那些令人叹为观止的功能,你玩转了吗?

≯℡__Kan透↙ 提交于 2019-12-07 02:12:20
对于资深的PPT发烧友涞说具有无可比拟的魔力,它又有哪些让你相见恨晚的知识呢? PowerPoint 作为一款备受欢迎的办公软件,很多用户只是知道常见的一些基础功能,而更深层次的功能,估计大部分人都不知道。 1、咱们就从“开始”说起: 1.1 【替换字体】 指一键将A字体替换为B字体。 当我们做了一个PPT,里面正文用的是宋体,但做好之后,我们觉得,正文用微软雅黑更好一点,我们点击 【替换字体】,即可一键替换文件中所有宋体,变成微软雅黑。 试想,如果没有这个功能,你要白费多少力气才能全部替换? 1.2 【自定义设置默认字体】 指我们将输入的文字字体默认为其他字体,而不是系统默认的宋体。 举个例子,当我做一个PPT时,我会挑选字体,比如某一个案子,我选择了标题使用华康丽金黑简体,正文使用黑体。但大家都知道,系统默认的字体是宋体,如果我想使用黑体,我有两个选择:一是去替换,这是事后干预。 二是直接开始就把黑体设置为默认的正文字体,这是事前干预。 PPT中的设置默认文本框功能,就是这个作用: 1.3 【PPT图层】 指PPT中单个页面中所有元素的层级关系。 很多人只知道PS有图层,但很少有人知道 PPT 的图层吗?这个图层有什么作用呢?大家都知道,当某一页PPT元素过多时,我们编辑起来会很麻烦,知道了图层的概念,我们就可以分层编辑,暂时不需要编辑的层可以选择隐藏。点击 【选择】

PowerPoint 2007 - Set language on tables, charts etc that contains text

一笑奈何 提交于 2019-12-07 00:54:23
问题 So I've got this macro that basically scans each slide in PowerPoint and sets the specified language. Works great. Howerver, it skips containers that aren't text boxes. I'd like it to apply the language on tables, smartart, charts etc. Basically anything that may contain text. Is this even possible? This is the current code: Public Sub changeLanguage() On Error Resume Next 'lang = "English" lang = "Norwegian" 'Determine language selected If lang = "English" Then lang = msoLanguageIDEnglishUK