You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Pablo Rivera | MediaSquare <pa...@mediasq.com> on 2012/05/09 13:58:25 UTC
XSLF tables doesnt working
Hi,
Im trying to create a table inside a xslf slide, but it doesnt work. Also,
when I execute the Tutorial4 that creates a table, LibreOffice crashes
trying to open the pptx. My code is based on the tutorial one, so I guess
both programs has the same bug.
I've been going deep into the tutorial's pptx and I see this at slide1.xml
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table">
<a:tbl>
<a:tblPr/>
<a:tblGrid/>
</a:tbl>
</a:graphicData>
Its seems like poi is generating an empty table? :S
The code from the tutorial is
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java
Thanks in advance.
-
- *Pablo Rivera*
- Software Engineer
-
- pablo.rivera@mediasq.com
- T:(+34) 902 10 83 84
-
-
- www.mediasq.com
Re: XSLF tables doesnt working
Posted by Pablo Rivera | MediaSquare <pa...@mediasq.com>.
Replacing poi-ooxml-schemas-3.8-20120326.jar with ooxml-schemas-1.1.jar it
works!!
Thanks a million!
-
- *Pablo Rivera*
- Software Engineer
-
- pablo.rivera@mediasq.com
- T:(+34) 902 10 83 84
-
-
- www.mediasq.com
2012/5/15 Yegor Kozlov <ye...@dinom.ru>
> Can you replace poi-ooxml-3.8.jar with ooxml-schemas-1.1.jar and try
> again?
> ooxml-schemas-1.1.jar can be downloaded from the Maven central repo:
> http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22ooxml-schemas%22
>
> I suspect the problem has to do with missing definition of OOXML schemas.
>
> Yegor
>
> On Mon, May 14, 2012 at 6:13 PM, Pablo Rivera | MediaSquare
> <pa...@mediasq.com> wrote:
> > It isnt only LibreOffice. I tried to open the The table.pptx created
> from *java
> > org.apache.poi.xslf.usermodel.Tutorial4* in Powerpoint 2010 and shows the
> > error (LibreOffice doesnt show any error, simply crashes :)). I'll attach
> > you the generated file.
> >
> > I tried just a second ago the same tutorial with the 3.9 beta version
> and I
> > got the same result. Also I tried with different javas (openjdk and sun)
> > from the Ubuntu repository and anything changes. Im using Ubuntu 11.10,
> btw
> >
> > Any ideas?
> >
> > -
> > -
> > - *Pablo Rivera*
> > - Software Engineer
> > -
> > - pablo.rivera@mediasq.com
> > - T:(+34) 902 10 83 84
> > -
> > -
> > - www.mediasq.com
> >
> >
> >
> >
> > 2012/5/14 Yegor Kozlov <ye...@dinom.ru>
> >
> >> Tables in XSLF were tested against MS Office 2007 and 2010. I've
> >> re-checked this functionality now and it is working OK for me.
> >>
> >> You are welcome to research why LibreOffice is not happy opening
> >> tables generated by XSLF.
> >>
> >> - Open the file in MS Office and then save. Can LibreOffice open it
> >> ? If yes, unzip both pre-save and after-save files and compare the
> >> xml. What makes LibreOffice crash?
> >> - create a new pptx file in with a table in LibreOffice and compare
> >> with a similar file created by XSLF. Are there any differences?
> >>
> >>
> >> Yegor
> >>
> >> On Mon, May 14, 2012 at 1:12 PM, wirthi <da...@wih24.de> wrote:
> >> > Hi,
> >> > obviously not. I'm having the same problem:
> >> >
> >>
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
> >> >
> >>
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://apache-poi.1045710.n5.nabble.com/XSLF-tables-doesnt-working-tp5697188p5708778.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
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> 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: XSLF tables doesnt working
Posted by Yegor Kozlov <ye...@dinom.ru>.
Can you replace poi-ooxml-3.8.jar with ooxml-schemas-1.1.jar and try again?
ooxml-schemas-1.1.jar can be downloaded from the Maven central repo:
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22ooxml-schemas%22
I suspect the problem has to do with missing definition of OOXML schemas.
Yegor
On Mon, May 14, 2012 at 6:13 PM, Pablo Rivera | MediaSquare
<pa...@mediasq.com> wrote:
> It isnt only LibreOffice. I tried to open the The table.pptx created from *java
> org.apache.poi.xslf.usermodel.Tutorial4* in Powerpoint 2010 and shows the
> error (LibreOffice doesnt show any error, simply crashes :)). I'll attach
> you the generated file.
>
> I tried just a second ago the same tutorial with the 3.9 beta version and I
> got the same result. Also I tried with different javas (openjdk and sun)
> from the Ubuntu repository and anything changes. Im using Ubuntu 11.10, btw
>
> Any ideas?
>
> -
> -
> - *Pablo Rivera*
> - Software Engineer
> -
> - pablo.rivera@mediasq.com
> - T:(+34) 902 10 83 84
> -
> -
> - www.mediasq.com
>
>
>
>
> 2012/5/14 Yegor Kozlov <ye...@dinom.ru>
>
>> Tables in XSLF were tested against MS Office 2007 and 2010. I've
>> re-checked this functionality now and it is working OK for me.
>>
>> You are welcome to research why LibreOffice is not happy opening
>> tables generated by XSLF.
>>
>> - Open the file in MS Office and then save. Can LibreOffice open it
>> ? If yes, unzip both pre-save and after-save files and compare the
>> xml. What makes LibreOffice crash?
>> - create a new pptx file in with a table in LibreOffice and compare
>> with a similar file created by XSLF. Are there any differences?
>>
>>
>> Yegor
>>
>> On Mon, May 14, 2012 at 1:12 PM, wirthi <da...@wih24.de> wrote:
>> > Hi,
>> > obviously not. I'm having the same problem:
>> >
>> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
>> >
>> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
>> >
>> > --
>> > View this message in context:
>> http://apache-poi.1045710.n5.nabble.com/XSLF-tables-doesnt-working-tp5697188p5708778.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
>> >
>>
>> ---------------------------------------------------------------------
>> 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: XSLF tables doesnt working
Posted by Pablo Rivera | MediaSquare <pa...@mediasq.com>.
It isnt only LibreOffice. I tried to open the The table.pptx created from *java
org.apache.poi.xslf.usermodel.Tutorial4* in Powerpoint 2010 and shows the
error (LibreOffice doesnt show any error, simply crashes :)). I'll attach
you the generated file.
I tried just a second ago the same tutorial with the 3.9 beta version and I
got the same result. Also I tried with different javas (openjdk and sun)
from the Ubuntu repository and anything changes. Im using Ubuntu 11.10, btw
Any ideas?
-
-
- *Pablo Rivera*
- Software Engineer
-
- pablo.rivera@mediasq.com
- T:(+34) 902 10 83 84
-
-
- www.mediasq.com
2012/5/14 Yegor Kozlov <ye...@dinom.ru>
> Tables in XSLF were tested against MS Office 2007 and 2010. I've
> re-checked this functionality now and it is working OK for me.
>
> You are welcome to research why LibreOffice is not happy opening
> tables generated by XSLF.
>
> - Open the file in MS Office and then save. Can LibreOffice open it
> ? If yes, unzip both pre-save and after-save files and compare the
> xml. What makes LibreOffice crash?
> - create a new pptx file in with a table in LibreOffice and compare
> with a similar file created by XSLF. Are there any differences?
>
>
> Yegor
>
> On Mon, May 14, 2012 at 1:12 PM, wirthi <da...@wih24.de> wrote:
> > Hi,
> > obviously not. I'm having the same problem:
> >
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
> >
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
> >
> > --
> > View this message in context:
> http://apache-poi.1045710.n5.nabble.com/XSLF-tables-doesnt-working-tp5697188p5708778.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
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>
Re: XSLF tables doesnt working
Posted by Yegor Kozlov <ye...@dinom.ru>.
Tables in XSLF were tested against MS Office 2007 and 2010. I've
re-checked this functionality now and it is working OK for me.
You are welcome to research why LibreOffice is not happy opening
tables generated by XSLF.
- Open the file in MS Office and then save. Can LibreOffice open it
? If yes, unzip both pre-save and after-save files and compare the
xml. What makes LibreOffice crash?
- create a new pptx file in with a table in LibreOffice and compare
with a similar file created by XSLF. Are there any differences?
Yegor
On Mon, May 14, 2012 at 1:12 PM, wirthi <da...@wih24.de> wrote:
> Hi,
> obviously not. I'm having the same problem:
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
> http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
>
> --
> View this message in context: http://apache-poi.1045710.n5.nabble.com/XSLF-tables-doesnt-working-tp5697188p5708778.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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: XSLF tables doesnt working
Posted by wirthi <da...@wih24.de>.
Hi,
obviously not. I'm having the same problem:
http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-td5670738.html
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XSLF-tables-doesnt-working-tp5697188p5708778.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: XSLF tables doesnt working
Posted by Pablo Rivera | MediaSquare <pa...@mediasq.com>.
Nobody can help me? :S
-
- *Pablo Rivera*
- Software Engineer
-
- pablo.rivera@mediasq.com
- T:(+34) 902 10 83 84
-
-
- www.mediasq.com
2012/5/9 Pablo Rivera | MediaSquare <pa...@mediasq.com>
> Hi,
>
> Im trying to create a table inside a xslf slide, but it doesnt work. Also,
> when I execute the Tutorial4 that creates a table, LibreOffice crashes
> trying to open the pptx. My code is based on the tutorial one, so I guess
> both programs has the same bug.
>
> I've been going deep into the tutorial's pptx and I see this at slide1.xml
>
> <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table
> ">
> <a:tbl>
> <a:tblPr/>
> <a:tblGrid/>
> </a:tbl>
> </a:graphicData>
>
> Its seems like poi is generating an empty table? :S
>
> The code from the tutorial is
> http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java
>
> Thanks in advance.
>
>
> -
> - *Pablo Rivera*
> - Software Engineer
> -
> - pablo.rivera@mediasq.com
> - T:(+34) 902 10 83 84
> -
> -
> - www.mediasq.com
>
>
>