Questions tagged [powerpoint-interop]

20 questions
6
votes
1 answer

How can I change the values in a PowerPoint chart using VSTO and C#?

I need to change the source data in a PowerPoint chart using VSTO. The first code snippet shows how I get the series from my shape object. SeriesCollection seriesCollection = shape.Chart.SeriesCollection(); Series series =…
User892313
  • 225
  • 3
  • 19
4
votes
0 answers

How to handle HTML text format with VSTO powerpoint

I am currently creating a powerpoint file in C# using VSTO. My problem is that I need to display HTML formated text in a textbox : PowerPoint.Shape descriptionTitle = slide6.Shapes.AddTextbox(xxx); descriptionTitle.TextFrame.TextRange.Text =…
TD Lemon
  • 385
  • 4
  • 18
2
votes
1 answer

C# Text in Powerpoint shape not being detected

I'm trying to extract all the text in each slide of a powerpoint file. For some reason I'm only getting some text and not all of them. I'm looping through all shapes in the slide and checking for both textframes and tables. But some slides with text…
Eric
  • 954
  • 2
  • 14
  • 23
1
vote
1 answer

Convert PowerPoint Presentation to HTML with Office 2019 or Office 365

I have a code which converts the PowerPoint presentation to HTML using Office 2007. The code which runs on Office 2007 without a problem is as below: static void Main(string[] args) { string source =…
1
vote
0 answers

Issue in converting ppt to video with Microsoft interop library

I am using Microsoft Interop Library to create a Video from a powerpoint presentation.The power point presentation contains internal embedded videos and animations. The Interope library works perfectly well and we are able to create the video…
1
vote
0 answers

PowerPoint Interop: How to detect when the user closes a PowerPoint without saving their changes?

I have a WPF application that stores PowerPoint files in a SQL Server database. The application has an edit button that opens a given PowerPoint file for editing. Since PowerPoint is a file-based application, I must use temporary files to load and…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1
vote
1 answer

Read an image in Powerpoint file using c# Interop

I need to parse a powerpoint file using c# Interop library. I know how to get text value but I don't know how to get picture data. For example, the powerpoint slide is composed by a text and a picture, like below. With this code I'm able to…
Cyr
  • 431
  • 1
  • 6
  • 18
1
vote
1 answer

Table header column background color not changing

I am using ASPOSE Slides in my project to perform a PPT task. I want to change my table header background-color but I have not found any solutions in Aspose forum for it. Can anybody provide me with the solution? ISlide sld =…
0
votes
0 answers

Chart Losing formatting when changing the data with python-pptx

I have a pptx chart with lots of customization. Every day I want to generate a dataframe in pandas and replace the chart data with the new dataframe data. What is happening is that the formatting specific to each series is getting messed up,…
tomytp
  • 11
  • 2
0
votes
0 answers

c# - PowerPoint Interop, insert and autoplay video not starting automatically

I am trying to create a PowerPoint, insert (embed) a video as mediaobject / shape and then, when playing I would love it to start playing directly. However, it doesnt play directly, it waits for me to give a trigger. PowerPoint.Application…
Mart
  • 475
  • 4
  • 21
0
votes
1 answer

How to configure IIS to run Asp.Net Core applications with MS PowerPoint

I have an Asp.Net Core Web Api application. I am using the Microsoft.Office.Interop.PowerPoint library to work with presentations. I have a code that opens a presentation at a specified path. before opening I check if the file exists in the given…
0
votes
1 answer

how to add transition for slide to powerpoint using interop or open xml sdk c#

In my solution, I use open xml sdk and interop to work with the presentation. Please tell me if it is possible with their help to add a transition for a slide to a presentation?
0
votes
1 answer

PowerPoint Interop: copy-pasting a shape crashes if done too fast

I'm using the Microsoft.Office.Interop.PowerPoint in a C#/.NET program in order to automate some operation on a PPTX file. I'm trying to create a copy of an existing Shape in the presentation by using this code: var shape =…
Master_T
  • 7,232
  • 11
  • 72
  • 144
0
votes
1 answer

How to remove chart axis and lines using C# with interop library?

I have a chart with some data present in it. I don't want to show the x and Y axis. I somehow find out how to remove the legend in the chart. But failed to hide the axis. I just want to remove the Grid line and Axes also. I have the chart object…
Mari Selvan
  • 3,598
  • 3
  • 21
  • 36
0
votes
1 answer

Get selected chart object or text frame or table using C# VSTO addon?

I was trying to get a current selected object present in PPTX file for an VSTO addon. I was using the below package for creating a chart,tables and text in slides. using PowerPoint = Microsoft.Office.Interop.PowerPoint; using Office =…
Mari Selvan
  • 3,598
  • 3
  • 21
  • 36
1
2