Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Need Help for set default size (width and length) of table using 'XWPFTable'

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Help for set default size (width and length) of table using 'XWPFTable'

    Hi,

    We are creating word document using java and creating table using 'XWPFTable' class. But, we want to set default size of table length and width using "XWPFTable' class. Please help us and its great helpfull for us.

    Thanks,


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Need Help for set default size (width and length) of table using 'XWPFTable'

    Welcome nareshdev

    Consult the documentation for the XWPFTable class for it's usage.

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Help for set default size (width and length) of table using 'XWPFTable'

    Quote Originally Posted by jps View Post
    Welcome nareshdev

    Consult the documentation for the XWPFTable class for it's usage.

    Yeah, we tried a lot but we didn't find any solution.
    Actually my requirement is need to create table with default length and width in word document using java. Please let us know is there any other solution.

    Thanks,

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Need Help for set default size (width and length) of table using 'XWPFTable'

    If by "table with default length and width" you mean some sort of organized display, then yes. If you mean something else then please explain what you are trying to do.

  5. #5
    Junior Member
    Join Date
    Jun 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Help for set default size (width and length) of table using 'XWPFTable'

    Quote Originally Posted by jps View Post
    If by "table with default length and width" you mean some sort of organized display, then yes. If you mean something else then please explain what you are trying to do.
    Hi,

    Please find the attached screenshot. As per Screenshot we need fixed length of cell whether it is table or else any other way to make it. But, we need fixed length of cell using java.

    Thanks,
    Attached Images Attached Images

Similar Threads

  1. [SOLVED] I Forgot how to set a size to a JTextArea
    By Java Programmer in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 19th, 2012, 10:08 PM
  2. Default Dialog box changes size
    By anu21g in forum AWT / Java Swing
    Replies: 3
    Last Post: January 2nd, 2012, 05:46 AM
  3. How to programmatically set combobox width?
    By stab in forum AWT / Java Swing
    Replies: 1
    Last Post: June 3rd, 2011, 03:59 PM
  4. Reading the size (height and width) of word documents
    By pradeep_das in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 7th, 2010, 09:58 AM
  5. How to set the Listbox size.
    By jacinto in forum AWT / Java Swing
    Replies: 4
    Last Post: June 22nd, 2009, 07:39 AM