View Single Post
Old 11-28-2016, 10:02 AM
a_gunslinger a_gunslinger is offline Windows 7 64bit Office 2013
Join Date: Apr 2013
Posts: 7
a_gunslinger is on a distinguished road
Default Extract high resolution slide master background from presentation

See many a post on this, very few good answers. Using PPT 2016 PC. Have an inserted high resolution JPG as a slide master title background. Can I get it extracted in its original high resolution form? Some extract iamges apps get it but its a low res ping. Saw some C# code (below) but dont know how to run C# in the VB editor. SURELY there must eb a way ^)

Dim pptApplication As Application = New Application
Dim pptPresentation As Presentation = pptApplication.Presentations.Open("c:\"& vbTab&"emp\"& vbTab&"est.pptx", MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse)
pptPresentation.Slides(1).Export("c:\"& vbTab&"emp\slide.png", "png", 320, 240)
pptPresentation.Slides(1).PublishSlides("c:\"& vbTab&"emp\slide\", true, true)
pptPresentation.ExportAsFixedFormat("c:\"& vbTab&"emp\slide\example.pdf", PpFixedFormatType.ppFixedFormatTypePDF, PpFixedFormatIntent.ppFixedFormatIntentScreen)
pptPresentation.SaveAs("c:\"& vbTab&"emp\slide\example.html", PpSaveAsFileType.ppSaveAsHTMLDual)
pptPresentation.SaveAs("c:\"& vbTab&"emp\slide\exampledual.html", PpSaveAsFileType.ppSaveAsHTMLDual)
Reply With Quote