powerpoint

How to add custom fonts in Apache POI ppt

守給你的承諾、 提交于 2020-01-06 07:14:10
问题 I am able to add fonts which are default in Apache POI ppt but not able to add custom fonts. This is what I currently have: XSLFTextBox categoryTitleShape = indexslide.createTextBox(); categoryTitleShape.setAnchor(new java.awt.Rectangle(25, 40, 120, 30)); XSLFTextRun categoryTitle = categoryTitleShape.addNewTextParagraph().addNewTextRun(); categoryTitle.setText("CATEGORIES"); // visible text categoryTitle.setFontSize(20.); categoryTitle.setFontColor(Color.BLACK); categoryTitle.setBold(true);

Fix a text box (at the right) in PowerPoint slide from Excel VBA

感情迁移 提交于 2020-01-06 06:10:21
问题 I put one cell's content on a PowerPoint slide with this code: Set Sh = Pres.Slides(1).Shapes.AddLabel(Orientation:=msoTextOrientationHorizontal, _ Left:=80, Top:=58, Width:=150, Height:=45) Sh.TextFrame.TextRange.Text = Worksheets("Image ppt").Range("C38").Value Sh.TextFrame.TextRange.Font.Color = RGB(0, 75, 125) Sh.TextFrame.TextRange.Font.Size = 16 Sh.TextFrame.TextRange.Font.Bold = True I want that the text in the box be aligned to the right and the text box in the right top corner. Like

Fix a text box (at the right) in PowerPoint slide from Excel VBA

我只是一个虾纸丫 提交于 2020-01-06 06:10:08
问题 I put one cell's content on a PowerPoint slide with this code: Set Sh = Pres.Slides(1).Shapes.AddLabel(Orientation:=msoTextOrientationHorizontal, _ Left:=80, Top:=58, Width:=150, Height:=45) Sh.TextFrame.TextRange.Text = Worksheets("Image ppt").Range("C38").Value Sh.TextFrame.TextRange.Font.Color = RGB(0, 75, 125) Sh.TextFrame.TextRange.Font.Size = 16 Sh.TextFrame.TextRange.Font.Bold = True I want that the text in the box be aligned to the right and the text box in the right top corner. Like

What is this strange character and how can I get rid of It?

一曲冷凌霜 提交于 2020-01-06 06:08:26
问题 This shows up in both .NET and in VBA. The male sign: ♂ You'll notice on lines 4, 5, 6, 8, 10 and 12 there is an extra character there. This is from a paragraph mark. On line 3 is a tab character, but that just shows up as spaces. This happens when I try to grab the text of a .TextRange.Text in PowerPoint. Above is the Immediate Window in the VBE, but it also shows up .NET controls when I try to put the text in a control, such as a ListView. It can be replicated by opening a new PowerPoint

What is this strange character and how can I get rid of It?

故事扮演 提交于 2020-01-06 06:06:03
问题 This shows up in both .NET and in VBA. The male sign: ♂ You'll notice on lines 4, 5, 6, 8, 10 and 12 there is an extra character there. This is from a paragraph mark. On line 3 is a tab character, but that just shows up as spaces. This happens when I try to grab the text of a .TextRange.Text in PowerPoint. Above is the Immediate Window in the VBE, but it also shows up .NET controls when I try to put the text in a control, such as a ListView. It can be replicated by opening a new PowerPoint

vba powerpoint select a slide by name

老子叫甜甜 提交于 2020-01-06 05:01:10
问题 I am trying to select a slide by name. I have added a title via the outline. below is the code that is not working. "item Idaho not found in the slide collection" ActivePresentation.Slides("Idaho").Select 回答1: The slide's name and the text in the title placeholder nave nothing to do with one another. Unless you've renamed it, the first slide in the presentation will be named "Slide1", the second "Slide2" and so on. If you specifically need a way to locate the slide whose title text = "Idaho",

Using Excel VBA to change PowerPoint Slide Size - Late Binding

安稳与你 提交于 2020-01-05 21:08:11
问题 I'm new-ish to VBA and brand new to StackOverflow, so please forgive any breaches of etiquette. I have a project to create a tool using Excel VBA that will allow the user to identify a source Excel file and then copy the print area of every worksheet in the Excel file into a slide in a newly created PowerPoint presentation. I have to use late binding because I can't assume the users of the tool will all be using the same versions of the Microsoft Office products, or that they will have

Creating a Powerpoint with Graphs from Access

跟風遠走 提交于 2020-01-05 04:20:07
问题 I am trying to programmatically create a PowerPoint from graphs in Access. Ideally, when the graphs move over to PowerPoint they will become static pictures and not graphs still linked to the access data. I have tried procedures such as: Private Sub Command1_click() Dim pwrpnt as Object Dim Presentation as Object set pwrpnt = CreateObject("Powerpoint.Application") pwrpnt.Activate Set Presentation = pwrpnt.Presentation.Open("C:\test.ppt") Me.Graph1.SetFocus Runcommand acCmdcopy Presentation

How to write PowerPoint slide change to a file?

倖福魔咒の 提交于 2020-01-04 05:54:21
问题 I want to write to a file every time a slide is changed (next/back) in PowerPoint. With presentation.pps I want to write in the file something like: presentation - slide 1 - 11h04m03s presentation - slide 2 - 11h04m34s Does anyone know how to do this? 回答1: Okay, so here's what you need to do. Note one thing important - a PPS does not include a method to have a macro start upon opening the PPS. If you want that functionality, create an add-in (ppa) instead. For the PPS, create a module and a

Does anyone have an example of Apache POI converting PPTX to PNG

天大地大妈咪最大 提交于 2020-01-04 05:09:40
问题 Does anyone know of a good example of converting a PPTX powerpoint presentation to some form of image? PNG/GIF/etc? I can do it for a PPT but looking for a PPTX conversion example Thanks 回答1: In the meantime it works (... copied it from there): 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.FileInputStream; import java.io.FileOutputStream;