powerpoint

Extract table from Powerpoint

こ雲淡風輕ζ 提交于 2019-12-23 01:53:11
问题 I am trying to extract table from a PPT using python-pptx , however, the I am not sure how do I that using shape.table . from pptx import Presentation prs = Presentation(path_to_presentation) # text_runs will be populated with a list of strings, # one for each text run in presentation text_runs = [] for slide in prs.slides: for shape in slide.shapes: if shape.has_table: tbl = shape.table rows = tbl.rows.count cols = tbl.columns.count I found a post here but the accepted solution does not work

powerpoint 2013 - progress for export to video

十年热恋 提交于 2019-12-23 01:52:14
问题 I'm working on an application which reads a Powerpoint presentation from disk and saves it in video format using the following pseudocode: var app = new ppt.Application(); ppt.Presentation file = app.Presentations.Open( this.SourceFilename, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse); file.CreateVideo(this.DestinationFilename); while (true) { switch (file.CreateVideoStatus) { case PpMediaTaskStatus.ppMediaTaskStatusDone: ... case PpMediaTaskStatus.ppMediaTaskStatusFailed

PPT to PNG conversion with Apache POI

左心房为你撑大大i 提交于 2019-12-22 12:39:27
问题 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

Linking Powerpoint and Access through VBA?

☆樱花仙子☆ 提交于 2019-12-22 11:25:31
问题 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? 回答1: It's certainly possible to get Access data from Powerpoint. You need to make sure

PowerPoint VBA - Update linked graph from Excel at regular intervals

孤街醉人 提交于 2019-12-22 11:06:00
问题 I'm trying to build this system where I have this PowerPoint presentation with a linked graph from an external Excel file. I've seen that I can right click this graph in PowerPoint and click "Update link" and the graph is automatically updated. But what if I want this automated? If this can be done without creating an Add-in that would have been great. So which event handlers are there in PowerPoint? I reckon there's an event for SlideChanged or something? Could I possibly have the

copy text from Excel cell to PPT textbox

為{幸葍}努か 提交于 2019-12-22 10:57:55
问题 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 回答1: 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.

Python-PPTX: Changing table style or adding borders to cells

不羁的心 提交于 2019-12-22 09:08:06
问题 I've started putting together some code to take Pandas data and put it into a PowerPoint slide. The template I'm using defaults to Medium Style 2 - Accent 1 which would be fine as changing the font and background are fairly easy, but there doesn't appear to be an implemented portion to python-pptx that allows for changing cell borders. Below is my code, open to any solution. (Altering the XML or changing the template default to populate a better style would be good options for me, but haven't

Save PowerPoint 2007 as PowerPoint 2003 using Open Office SDK 2.0

左心房为你撑大大i 提交于 2019-12-22 07:08:44
问题 Is there anyway to use the Open Office SDK 2.0 to save a PowerPoint presention that you created using OOXML to a PowerPoint 2003 presentation? I know if you open a 2007 file and click Save As you have the option to save it as a PowerPoint 97 to 2003 document and I didn't know if I could do this grammatically using this SDK. The reason I am asking this question is because I need to give the user the option to save data on a website in either Office 2007 or 2003 format. I much rather just use

What algorithm does Microsoft Office 2010 use for encryption?

冷暖自知 提交于 2019-12-22 04:36:17
问题 Does it use the standard AES 128bit key for encryption? I've searched a lot on Google, but I still haven't found the algorithm is uses for encrypting. I'm encrypting a PowerPoint file. 回答1: This technet article confirms that the defaults are AES 128-bit key, SHA1, CBC. Although there are Office 2010 settings to change how encryption is performed, when you encrypt Open XML Format files (.docx, .xslx, .pptx, and so on) the default values — AES (Advanced Encryption Standard), 128-bit key length,

VSTO custom taskpane on multi DPI system shows content twice

半城伤御伤魂 提交于 2019-12-22 03:43:23
问题 I am building an office addin using VSTO. On systems with multiple monitors with different DPI settings, the contents of my custom task pane is drawn twice on the monitor with the higher DPI settings: Only the smaller version is actually responding to user input. The larger version seems to be simply an upscaled image. I have tried playing around with diverse DPI related settings like: AutoScaleMode on my user control. I tried all options, no change. Setting the process to DPI aware - or not