powerpoint

Previewing PDF and PowerPoint files with Silverlight/Flash

旧街凉风 提交于 2020-01-01 05:29:35
问题 I'm looking for code or a good control to preview PDFs and PPTs with Silverlight or Flash. It would be great if it has nice page-curl functionality. We want our customers to be able to have a look at their reports in a spiffy way. 回答1: Some ideas for Silverlight display: PPT Viewer PDF for Silverlight TextGlow Page Curl 回答2: Flash can only display Jpg images, therefore will need to convert each page of the PDF or PPT to a jpg file, then import these into a flash page turner component. PDF

unable to generate second table in PPT report using openxml

喜你入骨 提交于 2019-12-31 07:46:05
问题 I have this code. I am able to generate pptx report with text data perfectly. I have 4 tables as well in this report which has dynamic data. I am able to generate one table in PPT but unable to to do multiple. Requirement: On the right I have 4 tables. Expectation: I am able to get the 1st table. In below code I have added P.GraphicFrame graphicFrame2 in AddNewSlide method in assumption of it will create another frame for table which I can fill with data and place on PPT. But it doesnt work.

Disable PowerPoint features using C#

懵懂的女人 提交于 2019-12-31 05:48:08
问题 My scenario: I have a requirement in my project(C#).I need to give the user only reading capability for my powerpoint presentation opened thru my application.All other featues like cut,copy,paste,save,saveas,print,right click context menus should be disabled.How can i achieve this in powerpoint programatically using c#? can anyone extend their help? 回答1: Just export each slide as a JPG or PNG and display those: Slide.Export. This would be for static slide views. If you want to retain

How to add pictures to Powerpoint Presentation Picture PlaceHolder?

女生的网名这么多〃 提交于 2019-12-31 03:28:24
问题 I have created some code in Excel VBA to create a PowerPoint presentation 1 slide for each row of Excel, and populate in a specific text box in PowerPoint. I now want to add in all the images that match the description. These are all Jpegs and not charts etc. How can I do this, and is it better to do this in excel, or is it better to do this Powerpoint VBA itself? Eitherway, would anyone be able to help me out with some code on how to do this please? The image frames already exist in

PowerPoint VBA - Copy shape to a slide

余生长醉 提交于 2019-12-30 13:57:11
问题 I have developed a Powerpoint VBA function to which I pass a Shape and Slide object. The function finds for a shape with text LOGO inside it, if it finds, it replaces that shape with the shape I passed to the function. Function works perfectly on office 2013 but not on Office 2016. Can anybody please suggest a work around for this? Public Sub AddLogo_ONE(shLogo As Shape, oSlide As PowerPoint.Slide) Dim sh As Shape For Each sh In oSlide.Shapes If sh.HasTextFrame Then If UCase(sh.TextFrame2

How can I retrieve images from a .pptx file using MS Open XML SDK?

南楼画角 提交于 2019-12-30 09:33:03
问题 I started experimenting with Open XML SDK 2.0 for Microsoft Office. I'm currently able to do certain things such as retrieve all texts in each slide, and get the size of the presentation. For example, I do the latter this way: using (var doc = PresentationDocument.Open(pptx_filename, false)) { var presentation = doc.PresentationPart.Presentation; Debug.Print("width: " + (presentation.SlideSize.Cx / 9525.0).ToString()); Debug.Print("height: " + (presentation.SlideSize.Cy / 9525.0).ToString());

How can I retrieve images from a .pptx file using MS Open XML SDK?

谁都会走 提交于 2019-12-30 09:32:27
问题 I started experimenting with Open XML SDK 2.0 for Microsoft Office. I'm currently able to do certain things such as retrieve all texts in each slide, and get the size of the presentation. For example, I do the latter this way: using (var doc = PresentationDocument.Open(pptx_filename, false)) { var presentation = doc.PresentationPart.Presentation; Debug.Print("width: " + (presentation.SlideSize.Cx / 9525.0).ToString()); Debug.Print("height: " + (presentation.SlideSize.Cy / 9525.0).ToString());

Call VBA AddIn macro from VSTO PowerPoint Ribbon

最后都变了- 提交于 2019-12-30 07:23:26
问题 I've been stuck for a few hours on this problem : I am developing a PowerPoint AddIn in C# and I want to use a macro from another AddIn which is a PPAM file. The PPAM file is installed and enabled. In the Application reference I found that I need to use the Application.Run method but I cannot get it working ( nothing happens )... Here is my code: Globals.ThisAddIn.Application.Run("PPspliT.ppam!PPspliT.PPspliT_main", null); PPspliT.ppam is the installed AddIn ( which is located here : C:\Users

PowerPoint Launched via C# does not Quit

假如想象 提交于 2019-12-30 06:09:29
问题 Hey I'm automating PowerPoint and Excel from a C# WinForms application; what I do is read slides from PowerPoint and save them in Excel and then quit both apps. Excel quits successfully but PowerPoints doesn't quits. The problem is when I convert first time it doesnt quits, but when I convert again it does. Here is my code try { PowerPoint.Application ppApp; PowerPoint.Presentation ppPres; List<Company> companies = new List<Company>(); ppApp = new PowerPoint.Application(); ppApp.Visible =

How to Convert a ppt file into pdf file in Java?

霸气de小男生 提交于 2019-12-29 07:19:30
问题 I want to convert an MS powerpoint (ppt) document to PDF. I searched some jars like officetools.jar , but that requires purchase. Is there any way I can convert it through itext and apache POI like we do for doc to PDF? 回答1: I am using iText and apache poi: Following is the list of imports- import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io