You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/03/14 12:53:07 UTC

[Bug 54697] New: Can not create tables

https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

            Bug ID: 54697
           Summary: Can not create tables
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: jw@mercur.se
    Classification: Unclassified

Created attachment 30050
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30050&action=edit
A screen dump of Microsoft Powerpoint

When running the Tutorial4.java code:
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java

Only a small square is shown when opening the file in Microsoft Power Point
2010.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54697] Can not create tables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

--- Comment #5 from Nick Burch <ap...@gagravarr.org> ---
The preferred way is to write a unit test that uses the relevant bit of the
ooxml schema, that will then get the class included in the poi-ooxml-schemas
jar

The maven dependency is on the smaller jar, rather than the large one, but you
can explicitly change that yourself. It's detailed in the FAQ and Components
pages

If you could work up a unit test to solve this by default, that'd be great!

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54697] Can not create tables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

jlrice9673@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #2 from jlrice9673@hotmail.com ---
The XSLFTable getCTTable() method is working as expected and the XML object is
correct.  But it seems as though the XML is not getting added to the Slide XML
object.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54697] Can not create tables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

--- Comment #1 from Johan Walter <jw...@mercur.se> ---
Created attachment 30051
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30051&action=edit
The pptx file

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54697] Can not create tables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

--- Comment #4 from Felix Kurth <fe...@fkurth.de> ---
Adding ooxml-schemas-1.1.jar to the classpath solves the problem.

Please make a note about that to the documentation and to Tutorial4.java
Why is this lib not a maven dependency?
(http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54697] Can not create tables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54697

--- Comment #3 from Andreas Beeker <an...@gmx.de> ---
This works for me with the current trunk (= 3.10-beta3) with Libre Office 4 and
MS PP Viewer 14.
The generated files (attached table.pptx vs. my newly generated one) differ in
the slide1.xml - e.g. one of the differences is, that there's no table row
element (a:tr) after the table grid (a:tblGrid) in the attached table.pptx.

Things to try/check:
- try including the ooxml-schemas-1.1.jar (see
http://poi.apache.org/overview.html#components)
- which xmlbeans/xml-parser/jdk version do you use?
- do you use the tutorial4 code with just the recommended jars (opposed to your
application jars), if not, please give it a try ...

-- 
You are receiving this mail because:
You are the assignee for the bug.

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