PC Review


Reply
Thread Tools Rate Thread

Converting PowerPoint Flash to Images

 
 
Jimmy
Guest
Posts: n/a
 
      26th Oct 2008
I found the following code online, it basically iterates through every slide,
take a screen shot, and embed the image in a new PowerPoint. There is one of
two changes I like to make to it

1) The images in the new PowerPoint do not fill up the whole slide/screen.
What must I do to make the image fill up the whole screen?

OR

2) Is there a way to iterate through every flash object in every slide and
embed each individual flash as a separate image in the new slide? I still
want flash objects that were in the same slide in the old PowerPoint to
remain in the same slide in the new PowerPoint, but only is an image format.

Script starts now.....

Sub PasteSlideImages()

Dim Counter As Integer
Dim oPresA As Presentation
Dim oPresB As Presentation
Dim oSlide As Slide
Dim oShp As Shape

Set oPresA = ActivePresentation
' Create a new presentation
Set oPresB = Presentations.Add
For Counter = 1 To oPresA.Slides.Count
' Add a blank slide to insert image of source slide
oPresB.Slides.Add oPresB.Slides.Count + 1, ppLayoutBlank
' Activate the source presentation and move to the source
' slide
oPresA.Windows(1).Activate
ActiveWindow.View.GotoSlide Counter
Set oSlide = oPresA.Slides(Counter)
' Switch to Notes view to obtain the shape reference of
' the Title shape i.e. the slide image on the notes page
ActiveWindow.ViewType = ppViewNotesPage
On Error Resume Next
Set oShp = GetNotesTitle(oSlide)
' If shape reference wasn't obtained it implies that the,
' image may have to deleted or not included in the notes layout

If Not oShp Is Nothing Then
oShp.Copy
DoEvents
Else
' If the image is not present, we add title placeholder
' to copy the image and then delete it.
oSlide.NotesPage.Shapes.AddPlaceholder (ppPlaceholderTitle)
Set oShp = GetNotesTitle(oSlide)
oShp.Copy
DoEvents
oShp.Delete
End If

ActiveWindow.ViewType = ppViewSlide
oPresB.Windows(1).Activate
ActiveWindow.View.GotoSlide oPresB.Slides.Count
ActiveWindow.ViewType = ppViewSlide
ActiveWindow.View.Paste

Next Counter

Set oShp = Nothing
Set oSlide = Nothing
Set oPresA = Nothing
Set oPresB = Nothing

End Sub

Function GetNotesTitle(oSld As Slide, _
Optional oPHType As Integer = ppPlaceholderTitle) As
Shape

Dim oShp As Shape

On Error GoTo ErrGetNotesTitle

For Each oShp In oSld.NotesPage.Shapes.Placeholders

If oShp.PlaceholderFormat.Type = oPHType Then

Set GetNotesTitle = oShp

Exit Function

End If

Next oShp

ErrGetNotesTitle:

Set GetNotesTitle = Nothing

End Function





 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerPoint to Flash Converting PPT2Flash SDK, PPT2SWF SDK info@conaito.de Microsoft Powerpoint 0 10th May 2007 02:40 PM
Are you also converting PowerPoint to flash swf files? =?Utf-8?B?Um9iZXJ0IFBvaGw=?= Microsoft Powerpoint 0 3rd Nov 2005 04:55 PM
Converting PowerPoint Show 7 files to Powerpoint 2000 =?Utf-8?B?S2VycnlfeQ==?= Microsoft Powerpoint 2 1st Nov 2005 06:47 PM
Converting powerpoint slideshow into flash =?Utf-8?B?Z2Vvcmdl?= Microsoft Powerpoint 5 12th Oct 2005 06:30 AM
converting from images in the doc to references to images george Microsoft Word Document Management 1 7th Feb 2004 11:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 AM.