powerpoint

Extracting comments from a PowerPoint presentation using VBA

这一生的挚爱 提交于 2019-12-19 03:25:17
问题 I have a PowerPoint which contains around 50 slides. Each slide might have 1 or more comments provided by the reviwer (done using insert->comment menu). I am trying to get the comments programatically exported into a text file using this VBA code: Sub ConvertComments() ''# Converts new-style comments to old Dim oSl As Slide Dim oSlides As Slides Dim oCom As Comment Set oSlides = ActivePresentation.Slides For Each oSl In oSlides For Each oCom In oSl.Comments ''# write the text to file : (oCom

Using C# to display powerpoint

冷暖自知 提交于 2019-12-18 21:31:07
问题 Is there any good way to use a windows application written in C# to display/control a powerpoint slideshow? Ultimately I would like to show thumbnails in a form and clicking these thumbnails would advance the slides shown on a second monitor (similar to using Powerpoint itself to show a slideshow on a second monitor). I would like to be able to use Powerpoint Viewer if Powerpoint is not installed. There seems to be some ActiveX-controls that allows integration of Powerpoint in a form, but

C# - way to programmatically advance Powerpoint slide show?

一笑奈何 提交于 2019-12-18 18:58:13
问题 I'd like to be able to advance through a Powerpoint presentation by pressing buttons in a Windows form. Here's some code I've found from http://bytes.com/topic/c-sharp/answers/272940-open-powerpoint-presentation-c-window-form that opens a Powerpoint presentation slide show: Microsoft.Office.Interop.PowerPoint.Application oPPT; Microsoft.Office.Interop.PowerPoint.Presentations objPresSet; Microsoft.Office.Interop.PowerPoint.Presentation objPres; //the location of your powerpoint presentation

How do I hyperlink to a specific slide of a .ppt file?

天大地大妈咪最大 提交于 2019-12-18 14:44:33
问题 I want to link to a specific slide in an online PowerPoint file, (e.g. http://www.example.com/hello.ppt ) but what I want is that when people click on my link, it goes straight to the nth slide. Is this possible? 回答1: Link to http://www.whatever.com/hello.ppt #4 for slide 4 to be opened initially. Take a look at this site: http://www.tinyempire.com/shortnotes/files/specific_slide_in_ppt.htm 回答2: Also, if you want a link to the nth slide within the same file (to automate the 'Edit Hyperlink' >

How do I hyperlink to a specific slide of a .ppt file?

孤街浪徒 提交于 2019-12-18 14:44:13
问题 I want to link to a specific slide in an online PowerPoint file, (e.g. http://www.example.com/hello.ppt ) but what I want is that when people click on my link, it goes straight to the nth slide. Is this possible? 回答1: Link to http://www.whatever.com/hello.ppt #4 for slide 4 to be opened initially. Take a look at this site: http://www.tinyempire.com/shortnotes/files/specific_slide_in_ppt.htm 回答2: Also, if you want a link to the nth slide within the same file (to automate the 'Edit Hyperlink' >

Powerpoint Viewer control C# / VB / .NET

本秂侑毒 提交于 2019-12-18 12:42:13
问题 Anyone know how to make one or how to download a control to view powerpoint documents? I've searched, but the only thing that comes up is this, which is decidedly not free. I'm sure Microsoft must have a control that does this already. Make one control to do that it also welcome. 回答1: Here have the solution to the problem i have looking after. If anyone has the same problem i leave here the solution made by me after many hours of work. [DllImport("user32.dll", EntryPoint = "FindWindow",

How can I copy shapes from one slide to another slide in c#?

↘锁芯ラ 提交于 2019-12-18 08:57:51
问题 I need to insert shape(s) from presentation1 to presentation2. We can insert a slide like pptApp.Presentations[Presentation2].Slides.InsertFromFile("presenation1", 10,2,2); But I want only the shapes from Presentation1.slide(x) inserted to Presentation2.slide(y). How can i Do this in C#? Please help me. Thanks P2000 回答1: var origSlide = origPres.Slides[slideNum]; var destSlide = newPres.Slides[slideNum]; foreach (Shape origShape in origSlide.Shapes) { origShape.Copy(); newPres.Slides.Paste

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

蹲街弑〆低调 提交于 2019-12-18 08:33:47
问题 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? 回答1: This can be done simply with Dim XLApp As Excel.Application Dim PPSlide As

How to obtain PowerPoint File Format Programmatically

ぐ巨炮叔叔 提交于 2019-12-18 07:11:19
问题 I need to determine whether the ActivePresentation is 97-2003 or 2007 format. I really won't want to check the extension. Is there a property somewhere inside the PowerPoint Object Model which gives this info? 回答1: There is no File Format property, unfortunately. You'll have to go the extention route, like: Sub APFileFormat() Dim ap As Presentation Set ap = ActivePresentation Length = Len(ap.Name) Match = InStrRev(StringCheck:=ap.Name, StringMatch:=".") ExtentionLength = Length - Match Select

How can I embed a PowerPoint presentation into a WPF application without opening another window?

六眼飞鱼酱① 提交于 2019-12-18 03:38:31
问题 Currently I have a WPF application in C#, but I'm finding it to be incredibly difficult to find any useful ways to embed a PowerPoint presentation into my window. One solution I found here: Embedding a Powerpoint show into a C# application This solution created the problem of having PowerPoint run in another window, but just display its UI within the WPF application. This meant that when the WPF window was focused, the PowerPoint presentation was not, and stopped playing. There was also the