powerpoint

VSTO Powerpoint Notes Page - Different colored words on same line

Deadly 提交于 2019-12-20 03:16:46
问题 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 =

Using OpenXML to save a PowerPoint presentation as a PDF

99封情书 提交于 2019-12-20 02:29:37
问题 My objective is to make an automated server-side process to turn a .ppt into a .pdf . Microsoft themselves suggested that I use OpenXML, and now I'm looking at that. My question is: Can I actually achieve my objective using OpenXML? I'm having a hard time finding the methods that I'd expect, such as "save as" here Or perhaps I'm just misunderstanding how it all works? 回答1: ... to turn a .ppt into a .pdf. Microsoft themselves suggested that I use OpenXML ... Can I actually achieve my objective

Save PowerPoint pptm to pptx

╄→尐↘猪︶ㄣ 提交于 2019-12-20 01:47:21
问题 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. 回答1: Basic usage is: With ActivePresentation .SaveCopyAs _ FileName:

Save PowerPoint pptm to pptx

陌路散爱 提交于 2019-12-20 01:46:06
问题 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. 回答1: Basic usage is: With ActivePresentation .SaveCopyAs _ FileName:

Apply Font Formatting to PowerPoint Text Programmatically

放肆的年华 提交于 2019-12-19 19:47:25
问题 I am trying to use VBA to insert some text into a PowerPoint TextRange , I use something like this: ActiveWindow.Selection.SlideRange.Shapes("rec1").TextFrame.TextRange.Text = "Hi" However, I can't figure out how to apply bold, italic and underline programmatically (I don't see a .RichText property or something similar). What I have is some simple HTML text with bold, italic and underlined text I would like to convert over. How to do this? 回答1: This is easily accomplished by using the

Accessing custom task pane is active window - Visual Basic, VSTO

落花浮王杯 提交于 2019-12-19 10:08:08
问题 I'm creating a COM add-in in VSTO for Ppt 2013 and am having a problem referencing the custom task pane in the active window. My code is supposed to make the custom task pane visible for the active window only, however it currently runs for all document windows. My code is: For Each CTP As Microsoft.Office.Tools.CustomTaskPane In Globals.ThisAddIn.CustomTaskPanes If CTP.Window Is Globals.ThisAddIn.Application.ActiveWindow Then CTP.Visible = True End If Next The taskpane is added to each new

How to programatically re-enable documents in the MS Office list of disabled files

谁说我不能喝 提交于 2019-12-19 09:37:51
问题 MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. (http://support.microsoft.com/kb/286017) The question is: How can this re-enabling of documents be accomplished programmatically, without interaction with the gui? 回答1: Consolidating previous answers and expounding upon them here. Office products store disabled items

Call subroutine when a specific slide loads, or on a timer

♀尐吖头ヾ 提交于 2019-12-19 08:40:11
问题 I'm working with a PowerPoint 2003 presentation for a kiosk display, and it is left running pretty much 24/7. One slide on it has the weather, the current date, and the 7 day forecast. I've already written the subs that will update the weather from an Excel workbook, and update the dates displayed, but right now I have to manually update it when I come in. Is there a way that I can have a subroutine (e.g. UpdateSlide() ) called when the slideshow reaches that particular slide? It seems like

Call subroutine when a specific slide loads, or on a timer

旧城冷巷雨未停 提交于 2019-12-19 08:40:09
问题 I'm working with a PowerPoint 2003 presentation for a kiosk display, and it is left running pretty much 24/7. One slide on it has the weather, the current date, and the 7 day forecast. I've already written the subs that will update the weather from an Excel workbook, and update the dates displayed, but right now I have to manually update it when I come in. Is there a way that I can have a subroutine (e.g. UpdateSlide() ) called when the slideshow reaches that particular slide? It seems like

PowerPoint and WPF

廉价感情. 提交于 2019-12-19 04:24:28
问题 I really need a way of loading a .ppt document in my wpf application. Can anyone give me a hint, code sample? 回答1: Checkout the following discussion thread. Also Dr.WPF got an interesting article that might help you as well: Hosting Office in WPF Application However consider license costs will be quite high for your scenario... 回答2: According to this artice the DSO Framer is no longer supported. Have to look for something else. 回答3: You may need to elaborate a bit more on your particular need