powerpoint

PPT to PNG conversion with Apache POI

随声附和 提交于 2019-12-06 07:37:50
By following the example provided at http://poi.apache.org/slideshow/how-to-shapes.html i got the conversion to work. FileInputStream is = new FileInputStream("slideshow.ppt"); SlideShow ppt = new SlideShow(is); is.close(); Dimension pgsize = ppt.getPageSize(); Slide[] slide = ppt.getSlides(); for (int i = 0; i < slide.length; i++){ BufferedImage img = new BufferedImage(pgsize.width, pgsize.height, BufferedImage.TYPE_INT_RGB); Graphics2D graphics = img.createGraphics(); graphics.setPaint(Color.white); graphics.fill(new Rectangle2D.Float(0, 0, pgsize.width, pgsize.height)); slide[i].draw

How to replace text in a PowerPoint (.ppt) document?

不羁的心 提交于 2019-12-06 07:04:02
问题 What solutions are there? I know only solutions for replacing Bookmarks in Word (.doc) files with Apache POI? Are there also possibilities to change images, layouts, text-styles in .doc and .ppt documents? I think about replacement of areas in Word and PowerPoint documents for bulk processing. Platform: MS-Office 2003 回答1: What are your platform limitations? Obviously Apache POI will get you at least part of the way there. Microsoft's own COM API's are fairly powerful and are documented here.

Insert images to powerpoint slide using python (win32com.client)

微笑、不失礼 提交于 2019-12-06 06:36:33
问题 I have been tasked with inserting and re-sizing several hundred images to a powerpoint. I need to use a particular source format that is similar to other power points used by our company. I have been playing around with activepython's win32com API's and I have figured out how to open up a file and create a blank slide. My question is how would I go about inserting an image and resizing it to whatever size I need(the images will be the only thing on each page). Also I am trying to use my

Linking Powerpoint and Access through VBA?

流过昼夜 提交于 2019-12-06 06:29:26
I have a Powerpoint slide that contains textboxes. I would like to link those textboxes with a filtered view of a data table in Access. For ex, if I had a TaskList application in Access that displayed tasks with different priorities and affectations; is there a way to open that file, select that view, and filter it according to a vba (or other) onclick button event triggered from my Powerpoint presentation? It's certainly possible to get Access data from Powerpoint. You need to make sure you have the correct references set to the Microsoft DAO Object Library in your VBA project. Then, to

Error: “The specified data type is unavailable” When pasting Shapes as PNG format in PowerPoint

核能气质少年 提交于 2019-12-06 05:28:11
I need to write a macro to convert all grouped diagrams (shapes, arrows and text) in a PPT presentation to PNGs. (I am converting the PPTs using some eLearning software and the diagrams end up corrupt; and I need them to be PNGs because enhanced metafiles also present issues). I've been using some slightly modified code from a macro that converts Pictures (enhanced meta files) to PNGs. All I did was change msoPicture to msoGroup: Sub ConvertAllPicsToPNG() Dim oSl As Slide Dim oSh As Shape For Each oSl In ActivePresentation.Slides For Each oSh In oSl.Shapes ' modify the following depending on

solution to perform lots of calculations on 3 million data points and make charts

廉价感情. 提交于 2019-12-06 04:30:17
i have an excel spreadsheet that is about 300,000 rows and about 100 columns i need to perform various functions on this spreadsheet and out of this spreadsheet i need to create about 3000 other spreadsheets which are SIGNIFICANTLY smaller for every created spreadsheet i will need to have a separate powerpoint file that will have an automatically generated graph i've done lots of VBA programming, but i am a little lost with this project if i dump the data into a mysql file would it be easier for me to handle my task? is it feasible to do this all in VBA excel? is it possible to easily add

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

被刻印的时光 ゝ 提交于 2019-12-06 03:46:53
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? 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 FileInputStream(filename)); final XSLFSlide slide = ppt.getSlides()[5]; The slide contains different parts (

Changing the properties of elements in Office Ribbon using VBA

让人想犯罪 __ 提交于 2019-12-06 03:00:00
问题 I am a beginner in VBA and Office Ribbon UI. I am using Office 2007 and used Custom UI to develop a Ribbon in PPTM. I have added a set of XML like the one below: <group id="myGroup" label="Hello World" visible="false"> <labelControl id="lblUsername" label="Your Username: " /> <labelControl id="lblFullname" label="" /> </group> So, in this Hello World tab, I would like to change its visibility to true and change the the values of lblUsername and lblFullname . Currently this has to be done

copy text from Excel cell to PPT textbox

僤鯓⒐⒋嵵緔 提交于 2019-12-06 02:17:46
I have to copy text from a cell in Excel to a textbox in PPT using excel-vba. I have the following code: ActivePresentation.Shapes(tb).TextFrame.Characters.Text = ActiveSheet.Range("C41").Value But this code is giving the error "method or data member bot found" for Shapes. What is the correct way to do it? Thanks in advance You are getting an error becuase you have not specified where the shape is. I mean which slide??? See this example. (tried and tested from Excel) Amend as applicable. Code: Option Explicit Sub Sammple() Dim oPPApp As Object, oPPPrsn As Object, oPPSlide As Object Dim

Delphi - OleContainer - PowerPoint - AutoPlay

风流意气都作罢 提交于 2019-12-06 02:07:39
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 application presentation was still on first slide . Run command isn't right? You do not need a OleContainer to