powerpoint

How to update a chart?

匆匆过客 提交于 2019-12-24 13:49:42
问题 I have a PowerPoint presentation with ~200 slides. Each slide has one chart, with data that is updated monthly by a link to a master xlsx file. To not show empty values (future months) in the charts, I open the data editor (chart right click > Edit data...) of every chart and select the range until the current month. I wrote a macro for it in PowerPoint: Sub Refresh_slides() For i = 1 To ActivePresentation.Slides.Count Set ObjSlide = ActivePresentation.Slides(i) On Error Resume Next Set

How to display and download a pptx file from databricks?

折月煮酒 提交于 2019-12-24 12:18:28
问题 I generated a power point deck with a utility script in databricks using Python. I want to access the file now in the kernel but due to the images in the deck, it shows strange symbols. How do I correct this statement which outputs the deck image? #access file dbutils.fs.head('file:/dbfs/user/test.pptx') Out: 'PK\x03\x04\x14\x00\x00\x00\x08\x00D�lOƯ�g�\x01\x00\x00�\x0c\x00\x00\x13\x00\x00\x00[Content_Types].xml͗�N�0\x10��<E�K\x0e�q�\x175��rb�\x04<�I����-ϴзg�.��R�\n_\x12�3���\'Q4霼�:\x1a�GeM�l�

python-pptx: How canI reposition the picture placeholder?

 ̄綄美尐妖づ 提交于 2019-12-24 11:29:49
问题 I'm relatively new to the python-pptx package but I'm finding it very useful. I've added a slide with the "title and picture and caption" layout. SLD_LAYOUT_TITLE_AND_PICTURE_AND_CAPTION = 8 prs = Presentation(output_pptx_fp) slide_layout = prs.slide_layouts[SLD_LAYOUT_TITLE_AND_PICTURE_AND_CAPTION] slide = prs.slides.add_slide(slide_layout) shapes = slide.shapes placeholder_pict = slide.placeholders[1] # idx key, not position placeholder_pict.insert_picture(img_path) I'm trying to figure out

How do I edit the presProps.xml file with ApachePoi

我的梦境 提交于 2019-12-24 10:35:43
问题 I need to have a powerpoint loop until the user hits the escape key. Through saving and unzipping the file after checking the "Loop continuously until 'ESC'" option in the powerpoint's Slideshow Setup options I have a diff of the file that changes(ppt/presProps.xml) Not fixed: <p:presentationPr xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006

PowerPoint Programming: Indentation with Ruler margin levels not working?

瘦欲@ 提交于 2019-12-24 10:01:02
问题 Recently we upgraded one our PowerPoint addin to support 2007 and 2010. most of the items we were able to port without problem. one problem we have is that indentations doesn't work when create tables or shapes using the addin. for eg: same table gets dropped with proper indentation in 2003 but same thing doesn't get indentation when added to using 2007. below is the code snippet that allows indenting: With PropertyValues.ObjShape.Table.Cell(row, col).Shape.TextFrame.Ruler For rulerCount = 0

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

 ̄綄美尐妖づ 提交于 2019-12-24 09:39:49
问题 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. 回答1: This behavior is "by design" and Microsoft is not interested in changing. This is the way the UI functions.

Fatal Error in convert PPT to PNG in PHP

佐手、 提交于 2019-12-24 06:48:41
问题 I want to convert PPT to PNG with PHP. I wrote the following piece of code to solve the problem: $powerpnt = new COM("PowerPoint.Application") or die('could not create the powerpoint instance'); $powerpnt->Visible = True; $strPath = realpath(basename(getenv($_SERVER["SCRIPT_NAME"]))); $FileName = "MyPP"; $powerpnt->Presentations->Open("D:\\MySlide.ppt"); /* This is line #16 */ $powerpnt->ActivePresentation->SaveAs($strPath."/".$FileName,17); $powerpnt->Quit; $powerpnt = null; But I got the

VBA add-in: how to “embed” the required reference libraries? Getting “Compile error in hidden module” when sending functional add-in to other users

眉间皱痕 提交于 2019-12-24 06:45:19
问题 I wrote a powerpoint add-in that works well on my local computer. Yet when I email the file to others, all of a sudden half the functionalities no longer work and show the compile error as listed in the subject line. Digging a bit deeper, it appears the issue is that the client computers do not have the correct reference libraries (e.g., Excel 14.0 Object Library, Outlook, Access, etc.). I have these libraries correctly referenced when writing the add-in as a pptm file, but imagine that when

Powerpoint VBA - Move chldnode of Vertical Block List to the left

梦想与她 提交于 2019-12-24 05:47:34
问题 Please check below screenshot & code. It has my questions and code I have written so far (which is failing) Below is my code: Private Sub VerticalBlockList() Dim oPPT As PowerPoint.Application Dim oPres As PowerPoint.Presentation Const ppLayoutTitleAndContent As Byte = 32 Set oPPT = CreateObject("Powerpoint.Application") Set oPres = oPPT.Presentations.Add() Dim layout As SmartArtLayout Set layout = Application.SmartArtLayouts(26) With oPres.Slides.Add(oPres.Slides.Count + 1,

Creating a power-point file reader ( pptx ) [closed]

こ雲淡風輕ζ 提交于 2019-12-24 05:37:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a open-source pptx reader ( prefered in C# ) to modify it and put it into a 3D engine ( customer request ), or at least a tutorial on the basics. I already searched on google but can't find any useful resources. I know its possible to create a new reader by reading the pptx files documentation (