Its a long sho, but one usually does a <CR><LF> and nobody has suggested the 
combination of   #13#10 or CHR(13) CHR(10) which are the ASCII values 
associated with each in that order.
  ----- Original Message ----- 
  From: Dave O'Brien 
  To: NZ Borland Developers Group - Delphi List 
  Sent: Monday, June 15, 2009 4:07 PM
  Subject: Re: [DUG] MS Word replacement text


  Very weird. A hex editor shows 0d as a new line if I press enter in Word, but 
after replacing text with a 0d in it with code, the (new) new line doesn't 
work. Viewing the new document in hex shows the 0d there, it just doesn't do 
anything.

   

  Very confusing.

   

  From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On 
Behalf Of Kyley Harris
  Sent: Monday, 15 June 2009 3:46 p.m.
  To: NZ Borland Developers Group - Delphi List
  Subject: Re: [DUG] MS Word replacement text

   

  in version word 97-2003 it is just #13.. new version is some encoded XML 
structure that you cant read.

  On Mon, Jun 15, 2009 at 3:35 PM, Kyley Harris <ky...@harrissoftware.com> 
wrote:

  I would open a word document with a Hex editor, and see how they terminate a 
line.. its normally rich text.. so /n or some other command is more likely than 
an actual CRLF..

   

   

  On Mon, Jun 15, 2009 at 3:25 PM, Jason Coley <ja...@software-solutions.co.nz> 
wrote:

    Have you tried using just #10 (or is it just #13)

     

    Jason

     

    From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On 
Behalf Of Dave O'Brien
    Sent: Monday, 15 June 2009 1:54 p.m.
    To: Jason
    Subject: [DUG] MS Word replacement text

     

    I'm working with Word templates, replacing markers with text. I'm having 
trouble with new lines in the text, i.e. I want a new line, but the Word 
document doesn't want to play. I have tried #13#10, but this just puts two 
spaces in the text.

     

    Is there another code I need to use to force a new line?

     

    Regards,

    Dave.

     

     

    _______________________________________________
    NZ Borland Developers Group - Delphi mailing list
    Post: delphi@delphi.org.nz
    Admin: http://delphi.org.nz/mailman/listinfo/delphi
    Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe




  -- 
  Kyley Harris
  Harris Software
  +64-21-671-821




  -- 
  Kyley Harris
  Harris Software
  +64-21-671-821



------------------------------------------------------------------------------


  _______________________________________________
  NZ Borland Developers Group - Delphi mailing list
  Post: delphi@delphi.org.nz
  Admin: http://delphi.org.nz/mailman/listinfo/delphi
  Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to