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 2 of 2

Thread: insert(embed) a file object (.txt file) in MS excel sheet using java.

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default insert(embed) a file object (.txt file) in MS excel sheet using java.

    Hi

    I need to insert(embed) a file object (.txt file) in MS excel sheet using java.
    I dont need to put the contents of .txt file into excel. Instead i need to put the whole file as an embedded object into excel.
    I am using Apache Poi jar for this.
    I am attaching sample excel(test.xls) which is containing test.txt. I need to put this test.txt into text.xls using Apache POI.
    I have seen all the examples present in poi-3.7-beta1 but was not able to find any example, to insert(embed) a file object in excel sheet.

    I am facing issue in embedding file object into excel. Please help me doing this using Apache POI or any other jar.
    This is very urgent. Please explain which example(code snippet).


    Thanks
    Jyoti


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: insert(embed) a file object (.txt file) in MS excel sheet using java.

    I use SmartXLS. It is not free, but the demo is. There is supposed to be a time limit on the demo, but I found that if you download it on one machine, and copy and paste the library over to another machine, the demo never runs out. This works because it bases its time from the downloaded machine, which when you move it, can no longer update the library. The creators dont mind me doing this because they told me that if I dont want to upgrade, just redownload the library when it times out. The documentation is not great. I've been getting support from the creaters via email despite them knowing I dont have a licensed version. They even provided me with an updated demo library with some bugs fixed. And I've made some powerful programs with their demo library, so I can help you out with any issues you have.

    Like I said, the documentation isnt great, but feel free to message me regarding any confusion, I can help with just about any issue you may have.

Similar Threads

  1. Replies: 1
    Last Post: April 7th, 2011, 07:01 AM
  2. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM
  3. how to copy cells to a new sheet of excel with JexcelAPI??
    By 19world in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: June 15th, 2010, 03:49 AM
  4. Facing problem with posting Excel file for download - Content in browser
    By ragz_82 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: February 9th, 2010, 08:28 AM
  5. Input file parsing to insert into DB
    By IDForums in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: September 30th, 2009, 02:29 AM