powerpoint

Connect to SQL Server from Powerpoint

懵懂的女人 提交于 2019-12-12 14:29:58
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . How can I connect to a SQL DB from Powerpoint (be it 2007 or 2010) to generate reports? I've seen quite a few forums and most of them talk about using external tools. Check http://www.officekb.com/Uwe/Forum.aspx/powerpoint/34863/Linking-PowerPoint-to-a-database http://www.ljzsoft.com/pptreport/help/ppt-report-help.htm Isnt there any out of the box solution

VBA PowerPoint Online Guide and How to Record a Macro

末鹿安然 提交于 2019-12-12 13:52:09
问题 Could anyone recommend to me a good online guide to PowerPoint VBA? Also, does anyone has advice on how to record a macro in PowerPoint? 回答1: To record a powerpoint macro: In the menu bar, click on Tools Mouse over Macro > and the submenu will be displayed Click the Record button - a new toolbar will be displayed Do your thing Click the stop button on the new macro toolbar Click on Tools->Macro->Macros. Find the macro you just recorded and click the Edit button. That will show you what was

Error when pasting slide: The specified data type is unavailable

纵然是瞬间 提交于 2019-12-12 13:42:51
问题 I am getting following error while pasting a slide in PowerPoint in the following line: PPApp.ActiveWindow.View.PasteSpecial ppPasteOLEObject, msoFalse Run-time error -2147188160 (80048240):View (unknown member) : Invalid request. The specified data type is Unavailable I have run this code multiple times and it was running fine before. Also, once the object/chart is copying; I am switching to PowerPoint to see if I can paste. I can paste with all the options (As picture, As Embedded Image,

C# copy image form PowerPoint to Word

為{幸葍}努か 提交于 2019-12-12 13:27:42
问题 I need a application to copy text and images form PowerPoint to Word. I use this libraries: Microsoft.Office.Interop.PowerPoint and Microsoft.Office.Interop.Word. The text s easy to transfer, but when I find in PowerPoint a shape containing only a image, it show this error: " A generic error occured GDI+ ", at this part of code: foreach (PowerPoint.Shape shape in slide.Shapes) { if (shape.HasTextFrame != MsoTriState.msoTrue){ shape.Copy(); Image img = (Image)Clipboard.GetData(DataFormats

get the title of slides of pptx file using Python

萝らか妹 提交于 2019-12-12 12:58:10
问题 I am trying to get the title of each slide of a powerpoint file using Python. I am using Presentation package in Python but I couldn't find anything that specifies the titles. I have this code that return the content of the powerpoint file. but I need to specify the titles. from pptx import Presentation prs = Presentation("pp.pptx") # 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:

Generating Powerpoint PPT with ColdFusion?

╄→гoц情女王★ 提交于 2019-12-12 12:27:53
问题 Does anyone know if it's possible to generate powerpoint ppts within ColdFusion? I can't rely on the approach of installing a copy of office and generate one through COM and I can't use ooxml since my client is still in the office 2003 era. Any suggestion is much appreciated. 回答1: You can try using Apache POI, specifically their Powerpoint support. Looks to be still in beta though: http://poi.apache.org/slideshow/index.html I've used POI to extra from Word docs before and it was rather easy

Reading .ppt (MS PowerPoint) file in Cocoa Touch

我是研究僧i 提交于 2019-12-12 10:43:45
问题 Any idea how to read a .ppt file in Cocoa Touch ? I tried to load the contents of the file in UIWebView but it didn't work. Here is the code : [aWebView loadData:[NSData dataWithContentsOfFile:filePath] MIMEType:@"application/vnd.ms-powerpoint" textEncodingName:@"utf-8" baseURL:[NSURL fileURLWithPath:filePath]]; [powerWeb loadData:[NSData dataWithContentsOfFile:filePath] MIMEType:@"application/vnd.ms-powerpoint" textEncodingName:@"utf-8" baseURL:[NSURL fileURLWithPath:filePath]]; All

How can I change the font color of a TextRange in PowerPoint from C#?

梦想的初衷 提交于 2019-12-12 10:43:06
问题 I created a PowerPoint presentation using C#: PowerPoint.Application powerpointApplication; PowerPoint.Presentation pptPresentation; PowerPoint.Slide Slide; // Create an instance of PowerPoint. powerpointApplication = new PowerPoint.ApplicationClass(); // Create a PowerPoint presentation. pptPresentation = powerpointApplication.Presentations.Add( Microsoft.Office.Core.MsoTriState.msoTrue); // Create empty slide Slide = pptPresentation.Slides.Add(1, PowerPoint.PpSlideLayout.ppLayoutBlank);

How to run a macro “OnEnterSlide” or “OnLeaveSlide” in Powerpoint VBA?

懵懂的女人 提交于 2019-12-12 10:38:22
问题 Is there some kind of event which allows to run a macro any time one enters a slide or leave a slide ? 回答1: SlideShowNextSlide or OnSlideShowPageChange You can find the full list at http://officeone.mvps.org/vba/events_version.html Code sample from http://msdn.microsoft.com/en-us/library/aa211571%28office.11%29.aspx This example determines the slide position for the slide following the SlideShowNextSlide event. If the next slide is slide three, the example changes the type of pointer to a pen

VBA Powerpoint - Auto run on open and run in the background

寵の児 提交于 2019-12-12 09:59:31
问题 I'm trying to create a powerpoint presentation which will show the number of days since an injury in the workplace. When the presentation is first opened by the user i'd like a macro to run that prompts for a date to be entered since the last injury. So far for that i have this which appears to work ok:- Sub EveryDayAccidents() Dim injdate As String Dim lastdate As String Dim injfree As Integer Dim BnrMsg As String 'This Macro defines the latest injury date injdate = InputBox("Please enter