1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what language would you use to read + write over a word document file

Discussion in 'General Programming Chat' started by marscormier, Sep 7, 2014.

  1. marscormier

    marscormier Newbie

    Joined:
    Jul 4, 2008
    Messages:
    14
    Likes Received:
    0
    Location:
    Canada
    Hi have a programming project that I want to get done at my work. We receive quote request via a submit form. I want to take that data and append to an existing template quote page that is a word document. I would want a program that would take the word document keep its format and simply replace a few important keyholder with data from the submit form. e.g. [firstname] [lastname]. and then save the word document as a new file quote#211.doc.

    Any suggestions? I am thinking visual basic.


    -
    Marcel
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    What language is your request form processed with? PHP, ASP, JS? Cause you could use any of those languages to write your .doc file.
     
  3. Arbvestor

    Arbvestor Newbie

    Joined:
    Feb 11, 2014
    Messages:
    25
    Likes Received:
    15
    Occupation:
    Support Tech
    Location:
    Spain
    Home Page:
    If you are in a Java environment I would look into http://poi.apache.org/
     
  4. marscormier

    marscormier Newbie

    Joined:
    Jul 4, 2008
    Messages:
    14
    Likes Received:
    0
    Location:
    Canada
    The request form is in PHP. My IT guy who can do some simple coding tells me that you cannot modify a templated word document with php. Is that true?

    I have found that in Visual Studio you can add 'bookmark' to a word 2010 document. Seems like a good place to start.

     
  5. Arbvestor

    Arbvestor Newbie

    Joined:
    Feb 11, 2014
    Messages:
    25
    Likes Received:
    15
    Occupation:
    Support Tech
    Location:
    Spain
    Home Page:
    If you are on PHP, then this might be helpful:
    http://stackoverflow.com/questions/3369061/edit-doc-or-docx-file-using-php