K
kw
I am developing an application which indexes powerpoint text and publishes
the slides to the web. As part of this process, we convert all slides to
Jpeg. This works fine except when we get to certain bar charts which have
been inserted into powerpoint. These are the charts which use an Excel
datagrid to input data. What we are doing is pretty simple - here is a code
fragment.
###
ppt = Server.CreateObject("PowerPoint.Application")
ppt.Presentations.Open("c:\" & filename,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse)
oPres = ppt.Presentations.Item(1)
oPres.SaveAs(path & image_name, PpSaveAsFileType.ppSaveAsJPG,
Microsoft.Office.Core.MsoTriState.msoTrue)
###
The example above assumes the filename and path are specified as variables.
The result of the last line - oPres.SaveAs is a folder that contains all of
the slides and they all look fine, except the ones that should have charts,
do no.
Has anyone run into this and if so, is there a solution, either by way of
the ususal Microsoft bug patch, or a programming work around? Many Thanks in
advance.
the slides to the web. As part of this process, we convert all slides to
Jpeg. This works fine except when we get to certain bar charts which have
been inserted into powerpoint. These are the charts which use an Excel
datagrid to input data. What we are doing is pretty simple - here is a code
fragment.
###
ppt = Server.CreateObject("PowerPoint.Application")
ppt.Presentations.Open("c:\" & filename,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse)
oPres = ppt.Presentations.Item(1)
oPres.SaveAs(path & image_name, PpSaveAsFileType.ppSaveAsJPG,
Microsoft.Office.Core.MsoTriState.msoTrue)
###
The example above assumes the filename and path are specified as variables.
The result of the last line - oPres.SaveAs is a folder that contains all of
the slides and they all look fine, except the ones that should have charts,
do no.
Has anyone run into this and if so, is there a solution, either by way of
the ususal Microsoft bug patch, or a programming work around? Many Thanks in
advance.