powerpoint

Get slide index or visibility state of PowerPoint content addin (Office.js)

老子叫甜甜 提交于 2019-11-29 16:02:10
I'm writing a PowerPoint content addin using Office.js API. I need a way for each instance of that addin to determine the index of the containing slide, or, if this is impossible, the visibility state of the addin (i.e. whether the containing slide is currently visible on screen). The documentation suggests no API specifically intended for this purpose, so I've been using the following method: Upon addin initialization (inside Document.initialize callback), request currently selected slide using Document.getSelectedDataAsync method. Since addin cannot be initialized until it is visible, we can

Include PowerPoint viewer into my WPF application

邮差的信 提交于 2019-11-29 15:51:12
问题 I want to display my PowerPoint presentation into a WPF application. Requirements: Free (except PowerPoint is already installed on the PC) Has to be integrated into my WPF application, not an external one User must have the possibility to advance to the next slide, or go back Show animations I tried 2 solutions: Using DSOFramer, but they recommend to not use it anymore, and it doesn't support 2010 files. It's a no go. Using Microsoft.Office.Interop.PowerPoint, but it opens the PowerPoint as

How to copy cell range as table from Excel to PowerPoint - VBA

给你一囗甜甜゛ 提交于 2019-11-29 14:10:13
I can't find any way to do this. What I have now is that it copy the range as an image: Dim XLApp As Excel.Application Dim PPSlide As Slide Set XLApp = GetObject(, "Excel.Application") XLApp.Range("A1:B17").Select XLApp.Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture PPSlide.Shapes.Paste.Select this works like a charm, but is it possible to get it to copy the range as a table instead of picture? This can be done simply with Dim XLApp As Excel.Application Dim PPSlide As Slide Set XLApp = GetObject(, "Excel.Application") XLApp.Range("A1:B17").Copy PPSlide.Shapes.PasteSpecial

Is there a way to tell PowerPoint not to open Excel when creating charts?

限于喜欢 提交于 2019-11-29 10:55:13
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. Opening a presentation with WithWindow = false will still open Excel when creating new charts. This behavior is "by design" and Microsoft is not interested in changing. This is the way the UI functions. What you could do would be to create the chart in Excel (using either the interop or OpenXML), then import

How to Convert a ppt file into pdf file in Java?

↘锁芯ラ 提交于 2019-11-29 08:55:36
I want to convert an MS powerpoint (ppt) document to PDF. I searched some jars like officetools.jar , but that requires purchase. Is there any way I can convert it through itext and apache POI like we do for doc to PDF? Rohit patel I am using iText and apache poi: Following is the list of imports- import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi

Is it possible to update a PowerPoint slide with new data (in C#)?

久未见 提交于 2019-11-29 05:14:50
Are there any examples out there on how to update a PowerPoint slide (by clearing the text in a certain textbox and updating it with new content)? I have a monthly report to generate in PowerPoint and I have all the data in a database. I am trying to determine if I can simply autogenerate the slides by having a blank PowerPoint template with three textboxes and the data would get filled in from my C# code. The other examples i would look for are: bulletted lists tables Any help in the right direction would be appreciated. I see a few questions on SOF that are similar but none seems to answer

How can I programmatically open and save a PowerPoint presentation as HTML/JPEG in C# or Perl?

。_饼干妹妹 提交于 2019-11-29 02:12:15
I am looking for a code snippet that does just this, preferably in C# or even Perl. I hope this not a big task ;) Dolphin The following will open C:\presentation1.ppt and save the slides as C:\Presentation1\slide1.jpg etc. If you need to get the interop assembly, it is available under 'Tools' in the Office install program, or you can download it from here (office 2003) . You should be able to find the links for other versions from there if you have a newer version of office. using Microsoft.Office.Core; using PowerPoint = Microsoft.Office.Interop.PowerPoint; namespace PPInterop { class Program

Generate PowerPoint 2007/2010 file using Java

拟墨画扇 提交于 2019-11-29 00:25:58
问题 Does anyone know of any API (commercial or open-source) that can generate/edit PowerPoint 2007/2010 presentations through Java. I have a template in the PowerPoint 2007/2010 format that I require to edit/update. So far I have been converting the .pptx file to xml and then editing and storing it back as .pptx. But the file gets corrupted while opening. Is anyone aware of any other method or API that do this in Java? 回答1: We have done it programmatically (closed source at the moment, sorry) so

Charts from Excel to PowerPoint with Python

ぃ、小莉子 提交于 2019-11-28 23:54:22
I have an excel workbook that is created using an excellent "xlsxwriter" module. In this workbook, there about about 200 embedded charts. I am now trying to export all those charts into several power point presentations. Ideally, I want to preserve the original format and embedded data without linking to external excel work book. I am sure there is a way to do this using VBA. But, I was wondering if there is a way to do this using Python. Is there a way to put xlsxwriter chart objects into powerpoints ? I have looked at python-pptx and can't find anything about getting charts or data series

Copy from Excel to Powerpoint error

三世轮回 提交于 2019-11-28 14:33:05
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() Dim PPApp As PowerPoint.Application Dim PPSlide As PowerPoint.Slide Dim PPPres As PowerPoint