powerpoint

How to change slide layout programmatically in PowerPoint?

限于喜欢 提交于 2019-12-10 14:15:52
问题 I need to change a slide's layout programmaticaly with C# (Add-In Express 2009 for Office and .NET is used). If the new layout is a predefined one then everything is fine, but not if I need to set a custom layout as a new one (without slide recreating). Unfortunately, I didn't find any information on how to do it, PowerPoint object model reference documentation didn't answer me as well. There is just the ability to create a new slide that uses custom layout. I've done an experiment and have

Branching Slides in PowerPoint (VBA)

你。 提交于 2019-12-10 13:09:42
问题 I am trying to create a back button but using hyperlinks it simply just takes me to the previous page and ends up in a loop... e.g. if I have slide 1 which has links to slide 3, 4 & 5 then slide 3 links to 6 & 7. If I'm currently on slide 7 and click back it successfully takes me back to slide 3 but then I want to click back and end up at slide 1 rather than back to slide 7 (hopefully I'm making some sense!). I presume the only way for me to do this is with VBA can anyone give me some advice

AS3: Possible to read ppt file?

拥有回忆 提交于 2019-12-10 11:57:54
问题 Is it possible to get the content of a ppt file with as3? Possibliy similar to loading and reading an xml? 回答1: Technically speaking, yes. You can load a PPT file to your SWF using a URLLoader whose dataFormat is set to URLLoaderDataFormat.BINARY and write code to parse it based on the PPT binary file format released by Microsoft. In practice, I'd say that's not going to be an easy task. Consider open sourcing your ActionScript API for parsing PPT once you're done with it ;-) 回答2: There's

OpenTBS/PHP - Merge content into embedded worksheet inside of a PowerPoint template

ぃ、小莉子 提交于 2019-12-10 11:49:49
问题 How do I properly fill an embedded worksheet of a PowerPoint template with data using OpenTBS, where the worksheet is embedded inside of a PowerPoint presentation? I used sub files but the embedded worksheet retains the input tags and no replaced values. Excel Template that merges properly as a standalone xls file, but not when embedded in a presentation (PPTX). +------------------------------+---------------------------------+ | | [c.key;block=tbs:cell] | +------------------------------+----

Controlling Powerpoint using Leap motion and Python

寵の児 提交于 2019-12-10 11:33:23
问题 I just started up with python.I lately got a project where I have to make a powerpoint slideshow.This has to be done using leap motion sdk and python .So my powerpoint will be gesture based. How do I deploy this on my desktop in such a away that I just need to click on my desktop app or the ppt file itself, I get started with the powerpoint like on windows. I need to detect the finger gestures using python and integrate it to next - previous functionality. Can I get some guidance on

handling click event of web browser control

前提是你 提交于 2019-12-10 11:29:56
问题 I want to add click event of webBrowser control. This is my code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { HtmlDocument htmlDoc; public Form1() { InitializeComponent(); OpenFileDialog open = new OpenFileDialog(); open.ShowDialog(); this.webBrowser1.Navigate(open.FileName); } private void webBrowser1

How can I get the ActivePresentation file format from PowerPoint Interop

寵の児 提交于 2019-12-10 11:15:35
问题 ...for the enum Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType ? 回答1: You actually can't get the file format, unfortunately. The best that can be done is to read the extention, like in this thread: How to obtain PowerPoint File Format Programmatically. One other way is to use DSOFile to read the format. 回答2: Once the presentation is loaded it has no file format, only the internal memory structure. So from that POV it doesn't make sense to have the fileformat of the active presentation.

Converting powerpoint presentations (ppt/x) to PDF without Interop

瘦欲@ 提交于 2019-12-10 10:57:35
问题 I need to convert a PowerPoint (ppt/pptx) file to PDF using C# Currently, I'm using this code: public void PPTXToPDF(string originalPptPath, string pdfPath) { // Create COM Objects Microsoft.Office.Interop.PowerPoint.Application pptApplication = null; Microsoft.Office.Interop.PowerPoint.Presentation pptPresentation = null; try { object unknownType = Type.Missing; //start power point pptApplication = new Microsoft.Office.Interop.PowerPoint.Application(); //open powerpoint document

PowerPoint VBA macro to skip animation on a slide

删除回忆录丶 提交于 2019-12-10 10:54:47
问题 I've got some PowerPoint slides containing various pieces of custom animation (e.g. piece of text appears, pause, next piece of text appears, user clicks to show image). However, is it possible to add a macro so that the user could click a button and bypass all the animations to jump directly to the end state of the same slide? I know how to link a macro to a button, it's just the VBA itself that's the problem. Thanks 回答1: Have you tried? Sub JumpToEndOfAnimations() Call SlideShowWindows(1)

Python pptx (Power Point) Find and replace text (ctrl + H)

ぐ巨炮叔叔 提交于 2019-12-10 10:32:10
问题 Question in Short: How can I use the find and replace option ( Ctrl + H ) using the Python-pptx module? Example Code: from pptx import Presentation nameOfFile = "NewPowerPoint.pptx" #Replace this with: path name on your computer + name of the new file. def open_PowerPoint_Presentation(oldFileName, newFileName): prs = Presentation(oldFileName) prs.save(newFileName) open_PowerPoint_Presentation('Template.pptx', nameOfFile) I have a Power Point document named "Template.pptx". With my Python