powerpoint

Powerpoint editing how to copy one shape from one slide to another

跟風遠走 提交于 2019-12-02 06:14:32
问题 I'm a newbie in c# programming and I'm just confounded by the entire ms office library. I want to copy a textbox from one slide 3 and paste it in slide 2. I followed instruction from a page I found: How can I copy shapes from one slide to another slide in c#? presentation.Slides[3 + 1].Shapes[2 + 1].Copy(); presentaiton.Slides.Paste(2 + 1); But error message emerges and says: cannot paste because the clipboard is empty or contains things incompatible with the slide. I don't see the clipboard

Powerpoint issue when quitting

放肆的年华 提交于 2019-12-02 05:19:28
I have some c# code which opens a Powerpoint slide, refreshes the graphs, and then quits. This works fine, unless the user already has a Powerpoint slide open, in which case it will close down their existing session (losing any changes they may have made!) once the exe has run. So, the issue is if you have PPT’s open in the background, run my EXE which runs the below code (opening up a template, refreshing some graphs, saving and closing), upon application exit it disposes of the variable ppApp which seems to close down every running PPT. This is even the case if I omit ppApp.Quit();

LibreOffice Command Line Conversion - No Output File?

旧时模样 提交于 2019-12-02 04:36:22
I am using LibreOffice installed on my Linux box and I seem to be having a weird problem in that the conversion seems to be taking place, and there seem to be no errors, but there is no output file in the specified output directory. Here is an example of the command I am using: /opt/libreoffice3.6/program/soffice --headless --invisible --convert-to pdf /dir/file.pptx --outdir /dir And here is the result of that command: convert /dir/file.pptx -> /dir/file.pdf using impress_pdf_Export But the problem is that after running the conversion /dir/file.pdf does not exist. Do any of you have any

Attach 3 images in single slide at specified positions using Apache POI XSLF

混江龙づ霸主 提交于 2019-12-02 03:36:01
I need to paste 3 pictures in single slide using Apache POI XSLF. However I could able to add only one picture in a slide. Also I could not find any ways to specify the size and orientation the picture should be. Tried the following code XMLSlideShow ppt = new XMLSlideShow(); XSLFSlide slide = ppt.createSlide(); XSLFGroupShape group1 = slide.createGroup(); byte buf[] = new byte[1024]; for (int i = 1; i <= 2; i++) { byte[] pictureData = IOUtils.toByteArray(new FileInputStream( "C:\\Users\\Ashok\\Pictures\\" + i + ".png")); int elementIndex = ppt.addPicture(pictureData, XSLFPictureData.PICTURE

How to add pictures to Powerpoint Presentation Picture PlaceHolder?

☆樱花仙子☆ 提交于 2019-12-02 02:30:59
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. There are 2 images per slide (no transitions or anything). Thank you! P.S I am using PowerPoint and

Powerpoint editing how to copy one shape from one slide to another

白昼怎懂夜的黑 提交于 2019-12-02 02:05:57
I'm a newbie in c# programming and I'm just confounded by the entire ms office library. I want to copy a textbox from one slide 3 and paste it in slide 2. I followed instruction from a page I found: How can I copy shapes from one slide to another slide in c#? presentation.Slides[3 + 1].Shapes[2 + 1].Copy(); presentaiton.Slides.Paste(2 + 1); But error message emerges and says: cannot paste because the clipboard is empty or contains things incompatible with the slide. I don't see the clipboard is empty. In fact I can paste it on the word and see what it was - One time it was a blank picture and

VSTO Powerpoint Notes Page - Different colored words on same line

时间秒杀一切 提交于 2019-12-02 01:15:38
I am trying to insert content into the Notes Page of Powerpoint programmatically. There will be different colored text on the same line. I have only gotten it to work via paragraphs, but doing so will make them appear on different lines. This is what I have tried: var slideRange = Application.ActivePresentation.Slides; slideRange[1].NotesPage.Shapes[2].TextFrame.TextRange.Paragraphs(1).Font.Color.RGB = Color.Black; slideRange[1].NotesPage.Shapes[2].TextFrame.TextRange.Paragraphs(1).Text = "word1\r"; slideRange[1].NotesPage.Shapes[2].TextFrame.TextRange.Paragraphs(2).Font.Color.RGB = Color.Gray

Overlay item for all slides in PowerPoint

不羁的心 提交于 2019-12-01 22:08:36
问题 I want to make a PowerPoint add-in to show some small html+css component on each slide, and not by adding add-in every time I'm adding a new slide. What should I look for and could it be done with some office add-ins and commands APIs? 回答1: In PowerPoint, the way to add content that's repeated on every slide is called Slide Master (View > Slide Master). Unfortunately, content add-ins in the Slide Master view show only the static image of the add-in, not live HTML+CSS. So there's no way to put

Save PowerPoint pptm to pptx

心不动则不痛 提交于 2019-12-01 21:36:39
I am making my first steps in VBA. I have been trying many things, but still I haven't figured out a way to save a .pptm powerpoint presentation to .pptx format with the same file name in a specific path? I already use the following code to save as pdf. ActivePresentation.ExportAsFixedFormat "c:\" + Replace(ActivePresentation.Name, "pptm", "pdf"), ppFixedFormatTypePDF, ppFixedFormatIntentPrint, msoCTrue Thank you in advance. Basic usage is: With ActivePresentation .SaveCopyAs _ FileName:=.Path & "\" & Left(.Name, InStrRev(.Name, ".")) & "pptx", _ FileFormat:=ppSaveAsOpenXMLPresentation End

Overlay item for all slides in PowerPoint

↘锁芯ラ 提交于 2019-12-01 21:27:11
I want to make a PowerPoint add-in to show some small html+css component on each slide, and not by adding add-in every time I'm adding a new slide. What should I look for and could it be done with some office add-ins and commands APIs? In PowerPoint, the way to add content that's repeated on every slide is called Slide Master (View > Slide Master). Unfortunately, content add-ins in the Slide Master view show only the static image of the add-in, not live HTML+CSS. So there's no way to put live HTML+CSS on every slide with a single operation, but if all the user needs is the image of the content