Bug 46097 - Slide background using the master page's background
Summary: Slide background using the master page's background
Status: RESOLVED LATER
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL: http://poi.apache.org/apidocs/org/apa...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-27 08:23 UTC by Jie Han
Modified: 2013-12-27 01:12 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jie Han 2008-10-27 08:23:47 UTC
When the slide normal page using the default background (the master page's background, the following exception occurs


Code:
/////////////////////////////////////////
Background background = slide.getBackground();
Fill fill = background.getFill();
background.getEscherProperty(EscherProperties.FILL__BLIPFILENAME)

//////////////////////////////////////////////////////////////
Exception in thread "main" java.lang.ClassCastException: org.apache.poi.ddf.EscherComplexProperty cannot be cast to org.apache.poi.ddf.EscherSimpleProperty
	at org.apache.poi.hslf.model.Shape.getEscherProperty(Shape.java:312)
	at com.healthsuggi.slideshare.conv.plugin.PPT2SWF.convert(PPT2SWF.java:77)
	at com.healthsuggi.slideshare.conv.plugin.PPT2SWF.main(PPT2SWF.java:287)


///////////////////////////////////
the attached file the demo slide file for the exception.
Comment 1 Yegor Kozlov 2008-11-16 05:48:42 UTC
Can you upload a sample ppt demonstrating the problem?

Yegor
Comment 2 Andreas Beeker 2013-12-27 01:12:59 UTC
No update for some time => Resolve for now, please reopen with more information if this is still an issue.