Results 1 to 4 of 4
  1. #1
    bolbi123456 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Question Editing a wor d document from an application

    I am creating an application that keeps track of customer records, and payments are entered manually. this information needs to be passed into a word document template iv made.
    Is there any way to pass information from a class to fill a word template?
    if not, any possible solutions? thanks

  2. #2
    Join Date
    Jul 2010
    Posts
    38
    Rep Power
    0

    Default Re: Editing a wor d document from an application

    Quote Originally Posted by bolbi123456 View Post
    I am creating an application that keeps track of customer records, and payments are entered manually. this information needs to be passed into a word document template iv made.
    Is there any way to pass information from a class to fill a word template?
    if not, any possible solutions? thanks

    It may be helpful to you...

    XML Code:
    import java.math.*; 
    import java.io.*;
    
    public class TextToWord{ 
       public static void main(String arg[]) 
       {
           try{
                
      FileOutputStream fs = new FileOutputStream("TextToWord.doc");
    
      OutputStreamWriter out = new OutputStreamWriter(fs); 
                             
                   out.write("Welcome to Java Forum");
                    out.close();
               }
               catch (IOException e)
               { 
                     System.err.println(e);
               }
       }
    }


    -----------------------
    mcajavaprogramer
    Last edited by mcajavaprogramer; 05-11-2012 at 09:18 AM.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default Re: Editing a wor d document from an application

    Quote Originally Posted by mcajavaprogramer View Post
    It may be helpful to you...
    How is writing plain text to a file with a .doc extension in any way perceived to be helpful?

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

  4. #4
    bolbi123456 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default Re: Editing a wor d document from an application

    thank you! i managed to get the word doc to write

Similar Threads

  1. How to Convert Excel document to word document?
    By sudheer.v47 in forum Advanced Java
    Replies: 3
    Last Post: 05-09-2014, 09:26 AM
  2. JFormattedTextField, Document Filter, Document Listener
    By D.Calladine in forum AWT / Swing
    Replies: 1
    Last Post: 03-21-2012, 11:48 PM
  3. Problem with editing jar
    By DanielR in forum New To Java
    Replies: 16
    Last Post: 02-11-2011, 02:15 AM
  4. Photo Editing
    By stekun in forum Advanced Java
    Replies: 3
    Last Post: 02-23-2010, 05:11 AM
  5. Text editing
    By right2001 in forum New To Java
    Replies: 1
    Last Post: 04-10-2009, 07:03 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
  •