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: [email protected] [mailto:[email protected]]
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 <[email protected]>
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
<[email protected]> wrote:

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

         

        Jason

         

        From: [email protected]
[mailto:[email protected]] 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: [email protected]
        Admin: http://delphi.org.nz/mailman/listinfo/delphi
        Unsubscribe: send an email to [email protected] 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: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with Subject: 
unsubscribe

Reply via email to