You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Thorsten Bux <Th...@gmx.de> on 2008/08/20 14:28:56 UTC
How to cast a ShapeGroup-Object into a Table-Object (PPT)
Hi,
I have a table in a PPT-File.
When I iterate over the Shape-Objects I get this table as ShapeGroup Object.
But I need it as Table-Object to get access to the getCell()-Method for example.
Can anyone help me?
Thanks
Thorsten
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: How to cast a ShapeGroup-Object into a Table-Object (PPT)
Posted by Yegor Kozlov <ye...@dinom.ru>.
Recently I changed ShapeFactory so that it returns Table instances instead of ShapeGroup.
The "shape instanceof Table" approach should work, however some of the table properties are read-only.
The number of shapes is immutable, it means you can't change the number of borders, add/remove/merge rows and cells, etc.
Yegor
> Hi,
>
> I had the same pb and I think that Table object is only there for helping
> building a table when creating a new ppt. It is not done for parsing a ppt
> file (i.e. you can't cast a shape into Table)...
> If you want to access the cell content, just explode the ShapeGroup (which
> is made of Ligne and textShape as i can remember).
>
> Alex.
>
>
> Thorsten Bux-2 wrote:
>> Hi,
>>
>> I have a table in a PPT-File.
>> When I iterate over the Shape-Objects I get this table as ShapeGroup
>> Object.
>>
>> But I need it as Table-Object to get access to the getCell()-Method for
>> example.
>>
>> Can anyone help me?
>>
>> Thanks
>>
>> Thorsten
>>
>> --
>> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>> For additional commands, e-mail: user-help@poi.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: How to cast a ShapeGroup-Object into a Table-Object (PPT)
Posted by Acombe <a....@laposte.net>.
Hi,
I had the same pb and I think that Table object is only there for helping
building a table when creating a new ppt. It is not done for parsing a ppt
file (i.e. you can't cast a shape into Table)...
If you want to access the cell content, just explode the ShapeGroup (which
is made of Ligne and textShape as i can remember).
Alex.
Thorsten Bux-2 wrote:
>
> Hi,
>
> I have a table in a PPT-File.
> When I iterate over the Shape-Objects I get this table as ShapeGroup
> Object.
>
> But I need it as Table-Object to get access to the getCell()-Method for
> example.
>
> Can anyone help me?
>
> Thanks
>
> Thorsten
>
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/How-to-cast-a-ShapeGroup-Object-into-a-Table-Object-%28PPT%29-tp19068393p19267059.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