new line character is not recognized by ms word

Discussion in 'Java' started by siomatarnapolsky, Mar 17, 2009.

  1. siomatarnapolsky

    siomatarnapolsky

    Joined:
    Mar 16, 2009
    Messages:
    1
    Hi all.
    I am using VelocityEngine to get a ms word template (.vm file), replace some parameters and open the final word document, all this from a web page.
    I am using the VelocityContext.put() method to do this.
    The problem is: in the final word document the new line,paragraph breaks characters and tab spaces are being ignored.
    Therefore, for example, the text:
    "Hello World!
    My name is Joe"

    is displayed like "Hello World!My name is Joe"

    Is there a solution for this, thanks all in advance
     
    siomatarnapolsky, Mar 17, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Frost
    Replies:
    8
    Views:
    546
    Vladimir S. Oka
    Feb 10, 2006
  2. Andreas Leitgeb
    Replies:
    0
    Views:
    472
    Andreas Leitgeb
    May 15, 2009
  3. Mark Space
    Replies:
    0
    Views:
    508
    Mark Space
    May 15, 2009
  4. Bert Ameche
    Replies:
    8
    Views:
    149
    Pawel Zielniok
    Apr 19, 2009
  5. Johnnie Lieske
    Replies:
    6
    Views:
    161
    Johnnie Lieske
    Nov 28, 2008
Loading...

Share This Page