You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Omar <o....@bluage.com> on 2011/09/28 12:40:53 UTC

XSSFPicture pict.setAnchor not compile

Hi, 

i have no problème when :
HSSFPicture pict.setAnchor(anchor);

but in XSSF file :
this line (XSSFPicture pict.setAnchor(anchor);) is not built, i'm getting
this error:

The method set Anchor(HSSFClientAnchor) is undefined for the type
HSSFPicture



how to set Anchor to picture in XSSF?

Thanks in advance.
OKA

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XSSFPicture-pict-setAnchor-not-compile-tp4848678p4848678.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: XSSFPicture pict.setAnchor not compile

Posted by Omar <o....@bluage.com>.
Sorry, i will mean this error: 

The method setAnchor(/X/SSFClientAnchor) is undefined for the type
/X/SSFPicture.

i work just with (XSSF).

Thanks in advance.

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XSSFPicture-pict-setAnchor-not-compile-tp4848678p4848714.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: XSSFPicture pict.setAnchor not compile

Posted by Nick Burch <ni...@alfresco.com>.
On Wed, 28 Sep 2011, Omar wrote:
> i have no problème when :
> HSSFPicture pict.setAnchor(anchor);
>
> but in XSSF file :
> this line (XSSFPicture pict.setAnchor(anchor);) is not built, i'm getting
> this error:
>
> The method set Anchor(HSSFClientAnchor) is undefined for the type
> HSSFPicture

You can't pass a HSSF object to XSSF. You need to create the XSSF 
equivalent. The CreationHelper will let you do this in a general way

Nick