Results 1 to 12 of 12
  1. #1
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Special out for specified formats.

    Hello, don`t know if it`s the right place, but is it possible to out ( OutputStream ) a file like .doc or .odf with a table for example or a special fields that will be automatically filled from a Java code? Let`s say an excel table in .doc format filled with user data from Java program? ( License free too :) )

  2. #2
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    Accidently found OpenOffice UNO API and now I am going to read about it if it will work for me. For anyone with that kind of task:
    http://wiki.openoffice.org/wiki/Documentation/DevGuide/

  3. #3
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    Accidently found OpenOffice UNO API and now I am going to read about it if it will work for me. For anyone with that kind of task:
    http://wiki.openoffice.org/wiki/Documentation/DevGuide/

  4. #4
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    I`ll have to bump that, because I was wondering if XML file can be transferred to .DOC, or .ODF or .XLS via some out libraries?

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default Re: Special out for specified formats.

    How would it be transferred?
    The tool that could do that would need to know the structure of the source XML.

    You can write code to do that, but you would need to define how the XML maps onto these other formats.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    No idea... hopefully there will be some jar lib for that? I haven`t browsed all apache libraries, but having OO SDK forces everyone to use OO.. the idea is to just out a XLS table or pre-filled .DOC/.ODF... There is such tool for Perl for example for excell tables, so I was wondering if that would be possible for Java... I think it should be, but what is the tool?

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default Re: Special out for specified formats.

    Any sort of data, in almost any structure, can be stored in the form of XML.
    There is no package that can possibly unzip that data and turn it into some other structure (eg Excel) by magic, and expect it to be meaningfully useful at the other end.
    And "meaningfully" is the key here.

    You'll need to define how you want the data to look.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    I am quite surprised topic like mine is so rare... Nobody uses pre-filled templates? Let`s say insurances (originally in document formats), ok.. I`ll try few more stuff, I`ve heard there can be achieved something with Latex. Will try and report for everyone good.

  9. #9
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    I`ve found this great thread by Lars Vogell:
    Creating PDF with Java and iText - Tutorial
    anyone can benefit from this!

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default Re: Special out for specified formats.

    And?
    What does that have to do with your request for something that turns some random XML into a document?
    You still have to write the code that decides how to transform the XML into whatever format you want in the PDF.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  11. #11
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Special out for specified formats.

    Well, apparently iText can output pre-filled pdf formats that will serve for my purpose. I need some paper blanks, that people annoyingly fill by hand to be ready for printing and I was looking for solution, being that .DOC, or .ODF, but everything seemed very unfriendly, so I thought that XML coding could provide some data transfer, but it`s till XML... iText looks exactly what I needed, and it comes with it`s jar files for both iText classfiles and a nice XML library jar too.

  12. #12
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default Re: Special out for specified formats.

    OK.
    In which case I really had no idea what it was you were looking for.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. JSP Not preserve content formats
    By pari in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-30-2012, 10:52 AM
  2. Replies: 3
    Last Post: 03-01-2012, 02:08 PM
  3. Replies: 0
    Last Post: 06-28-2011, 12:04 PM
  4. Class to play variety of video formats
    By Swankee in forum New To Java
    Replies: 0
    Last Post: 10-12-2009, 08:38 PM

Posting Permissions

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