powerpoint

Writing custom code for PowerPoint using leap motion?

拥有回忆 提交于 2019-11-27 09:05:55
I am trying to make a gesture based PowerPoint slideshow . JavaScript would certainly not work here as I want my slideshow to work when that particular PowerPoint file (.ppt) is opened for windows. I googled, posted a question on the Leap Motion forum, but in vain. My primary concerns are: I am unsure about what to use here. Are there some SDKs for this purpose? In simple words, how do I write some custom code for a PowerPoint file on our system? Leap Motion apps can be developed with C#, C++, Python, JavaScript, Java, Objective-C Integrating the code for Leap Motion device with the above code

Copy from Excel to Powerpoint error

醉酒当歌 提交于 2019-11-27 08:30:32
问题 Again with the help of the kind resources around stackoverflow, I have been using the code below to copy information from Excel 2010 into Powerpoint 2010 slides. I repeat the code in the middle about 20 times for my slides. I start to get the message intermittently Run-time error -2147417851 (80010105) method 'pastespecial' of object 'shapes' failed on this line: Set ppShape = PPSlide.Shapes.PasteSpecial(DataType:=ppPasteOLEObject, Link:=msoFalse) Here is the rest of the code: Sub PPTReport()

Extracting images from pptx with apache poi

吃可爱长大的小学妹 提交于 2019-11-27 08:28:48
问题 I'm trying to extract slides from a ppt file with Apache POI, there is no problem in that, but now I intend to open pptx files and do the same, does anyone knows how to?? this is the code to extract images from ppt files: public ImageIcon display() throws JPresentationException { Background background; background = slides[current].getBackground(); Fill f = background.getFill(); Color color = f.getForegroundColor(); Dimension dimension = ppt.getPageSize(); shapes = slides[current].getShapes();

Get shape by Id or Name

两盒软妹~` 提交于 2019-11-27 08:04:21
问题 Is there any way to get a shape if you know its Id ? For example: Dim myshape As Shape myshape.Id = 42 myshape = getShapeById(myshape.Id) Or, alternatively, could I get the shape by Name ? Dim myshape As Shape myshape.Name = "Rectangle 42" myshape = getShapeByName(myshape.Name) 回答1: Getting a shape .Name by its .Id is somewhat more convoluted than getting its .Id by its .Name. But here's how it's done: Sub PrintShapeName() Debug.Print getNameByID(3, 1) End Sub Function getNameByID(shapeID As

Paste Excel Chart into Powerpoint using VBA

泪湿孤枕 提交于 2019-11-27 07:55:02
I'm trying to create an excel macro that copies charts displayed on an excel sheet, and pastes them (paste special) into a PowerPoint. The problem I'm having is how do I paste each chart on a different slide? I do not know the syntax at all.. This is what I have so far (it works but it only pastes to the first sheet): Sub graphics3() Sheets("Chart1").Select ActiveSheet.ChartObjects("Chart1").Activate ActiveChart.ChartArea.Copy Sheets("Graphs").Select range("A1").Select ActiveSheet.Paste With ActiveChart.Parent .Height = 425 ' resize .Width = 645 ' resize .Top = 1 ' reposition .Left = 1 '

Extracting all text from a powerpoint file in VBA

China☆狼群 提交于 2019-11-27 07:10:16
问题 I have a huge set of powerpoint files from which I want to extract all the text and just lump it all into one big text file. Each source (PPT) file has multiple pages (slides). I do not care about formatting - only the words. I could do this manually with a file by just ^A ^C in PPT, followed by ^V in notepad; then page down in the PPT, and repeat for each slide in the powerpoint. (Too bad I can't just do a ^A that would grab EVERYTHING ... then I could use sendkey to copy / paste) But there

Creating PowerPoint presentations programmatically

自古美人都是妖i 提交于 2019-11-27 03:11:18
Is there a way to programmatically create PowerPoint presentations? If possible, I'd like to use C# and create PowerPoint 2003 presentations. Yes, you can. You will want to look into MSDN which has a pretty good introduction to it. I might give you a word of warning, Microsoft Office interop is compatible with an API which is now more than 10 years old. Because of this, it is downright nasty to use sometimes. If you have the money to invest in a good book or two, I think it would be money well spent. Here's a starting point for you. Use the search feature on MSDN MSDN Webpage . It's good for

How to update excel embedded charts in powerpoint?

百般思念 提交于 2019-11-27 02:51:45
问题 I have 30 charts that were created from excel and were pasted onto powerpoint slides. Every month, I have to update these 30 embedded charts by manually clicking on the charts and edit. I am aware there is an option to use paste special, so that the data in the charts can be updated automatically by clicking the update links. However, my charts needs to be edited by some users. Paste special option does not allow users to edit the charts. Hence, I am unable to use this paste special option. I

How to name an object within a PowerPoint slide?

让人想犯罪 __ 提交于 2019-11-27 00:42:02
问题 So I know how to name a textbox, or a like object in PowerPoint with VB, but I was wondering if there was a way to name objects through the Ribbon (PowerPoint 2007). For instance, if I add a text box onto a slide, is there a way to assign it a name (sort of like the properties window in access, or the textbox in Excel 2003 at the top left side where you can enter the name)? Basically so I can reference it in code later; without having to use code to name each and every object i add after the

Creating Professional Looking Powerpoints in R

断了今生、忘了曾经 提交于 2019-11-27 00:38:34
问题 Is there a good way to use data from R and a package like ReporteRs to generate complete Powerpoints? I have about 900 slides to create. Our analysts currently follow this path: DB --> SAS --> CSV --> PPTX (embedded graphics) (x900 times) This is manual, open to lots of errors and slow. Ideally, I would prefer: DB --> R + ReporteRs --> PPTX (x1 time) The issue is 2-fold. First, our clients (unreasonably) prefer PPTX over a web or even PDF format. Second, R graphics cannot be edited in PPTX,