Problem exporting powerpoint slides to jpg

C

Cubaman

Hello:
I'm currently exporting a powerpoint presentation to jpg. It works
fine till there is a graph object embed in the presentation. In this
case the resulting image apears as a white empty image. The code i'm
using is as follows:

Private Shared Sub ConvertToImageInternal(ByVal params As Object)
Dim paramList As Object() = CType(params, Object())
Dim inPath As String = paramList(0)
Dim outPath As String = paramList(1)
Dim powerPointApp As Application = New Application()
Dim presentation As Presentation = Nothing
Try
presentation = powerPointApp.Presentations.Open(inPath, _

MsoTriState.msoTrue, _

MsoTriState.msoFalse, _

MsoTriState.msoFalse)
presentation.SaveAs(outPath, _
PpSaveAsFileType.ppSaveAsJPG, _
MsoTriState.msoCTrue)
presentation.Close()
powerPointApp.Quit()
Finally
GC.Collect()
GC.WaitForPendingFinalizers()
If Not presentation Is Nothing Then
Marshal.FinalReleaseComObject(presentation)
presentation = Nothing
End If
If Not powerPointApp Is Nothing Then
Marshal.FinalReleaseComObject(powerPointApp)
powerPointApp = Nothing
End If
End Try

If i export the same slides using PowerPoint app in normal way, it
just works fine. Any sugestion on how to correctly export the images?
Thanks!
 
C

Cubaman

Do you face the same problem if you make use of the Slide Export method,
instead of the Presentation Save As method?

Regards,
Shyam Pillai

Image Importer Wizardhttp://skp.mvps.org/iiw.htm

Yes, the same problem exporting from slides. Any other sugestion?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top