Results 1 to 4 of 4
  1. #1
    zitb is offline Member
    Join Date
    Nov 2014
    Rep Power

    Default addTab() missing

    Hello everyone,

    I'm using the Apache POI (poi-3.10.1) in order to generate a docx-document. The documentation says that there is a method, called addTab().
    But when I'm trying to call this method during a XWPFRun, a get an error, because the method is missing (see my attachment).

    Probably I make a mistake, do you have any idea?

    Best regards and thanks in advance,

    Attached Thumbnails Attached Thumbnails addTab() missing-addtab.jpg  

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: addTab() missing

    I see two possibilities: either the type declaration of cRun isn't XWPFRun or your IDE is not using the same version as the documentation you linked.

    What happens if you type the method call and try to compile the class? The compiler messages may provide a clue about what's wrong.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: addTab() missing

    Looking at grepCode that method only appears in 3.11, which is in beta.
    I'm sure I've encountered this before, where Apache puts up the latest code as the JavaDoc, even if it's in Beta, rather than the latest stable release, which is what I would expect.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    zitb is offline Member
    Join Date
    Nov 2014
    Rep Power

    Default Re: addTab() missing

    Thank you very much for your fast reply. It is indeed a method that is only available in 3.11 (beta). Now it works. :)

    I think this thread can be closed.

Similar Threads

  1. What am I missing?
    By jean28 in forum New To Java
    Replies: 4
    Last Post: 10-28-2012, 05:31 PM
  2. org.j3d is missing...
    By LinuxDev@Flanders in forum Java Gaming
    Replies: 3
    Last Post: 07-23-2012, 12:31 PM
  3. What am I missing here?
    By PuppetJacks in forum New To Java
    Replies: 4
    Last Post: 07-01-2012, 11:16 AM
  4. What am I missing here..?
    By andrew_smiley in forum New To Java
    Replies: 5
    Last Post: 02-22-2012, 01:47 PM
  5. missing info
    By java-noob in forum New To Java
    Replies: 2
    Last Post: 04-20-2010, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts