<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR>
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-NZ vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dave@iccs.co.nz href="mailto:dave@iccs.co.nz">Dave O'Brien</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@delphi.org.nz
href="mailto:delphi@delphi.org.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 15, 2009 4:07 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] MS Word replacement
text</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">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…<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Very
confusing.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> <A
href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</A>
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Kyley
Harris<BR><B>Sent:</B> Monday, 15 June 2009 3:46 p.m.<BR><B>To:</B> NZ Borland
Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] MS Word
replacement text<o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt">in version word 97-2003 it is
just #13.. new version is some encoded XML structure that you cant
read.<o:p></o:p></P>
<DIV>
<P class=MsoNormal>On Mon, Jun 15, 2009 at 3:35 PM, Kyley Harris <<A
href="mailto:Kyley@harrissoftware.com">Kyley@harrissoftware.com</A>>
wrote:<o:p></o:p></P>
<P class=MsoNormal>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..<o:p></o:p></P>
<DIV>
<P class=MsoNormal><o:p> </o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><o:p> </o:p></P>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal>On Mon, Jun 15, 2009 at 3:25 PM, Jason Coley <<A
href="mailto:Jason@software-solutions.co.nz"
target=_blank>Jason@software-solutions.co.nz</A>>
wrote:<o:p></o:p></P></DIV></DIV>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 6pt; PADDING-BOTTOM: 0cm; MARGIN-LEFT: 4.8pt; BORDER-LEFT: #cccccc 1pt solid; MARGIN-RIGHT: 0cm; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV>
<DIV>
<DIV>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Have you tried using just
#10 (or is it just #13)</SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Jason</SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN><o:p></o:p></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P><B><SPAN lang=EN-US style="FONT-SIZE: 10pt">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt"> <A
href="mailto:delphi-bounces@delphi.org.nz"
target=_blank>delphi-bounces@delphi.org.nz</A> [mailto:<A
href="mailto:delphi-bounces@delphi.org.nz"
target=_blank>delphi-bounces@delphi.org.nz</A>] <B>On Behalf Of </B>Dave
O'Brien<BR><B>Sent:</B> Monday, 15 June 2009 1:54 p.m.<BR><B>To:</B>
Jason<BR><B>Subject:</B> [DUG] MS Word replacement
text</SPAN><o:p></o:p></P></DIV></DIV>
<P> <o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">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.</SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Is there another code I
need to use to force a new line?</SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d">Regards,</SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d">Dave.</SPAN><o:p></o:p></P>
<P><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN><o:p></o:p></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P></DIV></DIV>
<P class=MsoNormal>_______________________________________________<BR>NZ
Borland Developers Group - Delphi mailing list<BR>Post: <A
href="mailto:delphi@delphi.org.nz"
target=_blank>delphi@delphi.org.nz</A><BR>Admin: <A
href="http://delphi.org.nz/mailman/listinfo/delphi"
target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A><BR>Unsubscribe:
send an email to <A href="mailto:delphi-request@delphi.org.nz"
target=_blank>delphi-request@delphi.org.nz</A> with Subject:
unsubscribe<o:p></o:p></P></BLOCKQUOTE></DIV>
<P class=MsoNormal><BR><BR clear=all><BR>-- <BR>Kyley Harris<BR>Harris
Software<BR>+64-21-671-821<o:p></o:p></P></DIV></DIV>
<P class=MsoNormal><BR><BR clear=all><BR>-- <BR>Kyley Harris<BR>Harris
Software<BR>+64-21-671-821<o:p></o:p></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>NZ Borland
Developers Group - Delphi mailing list<BR>Post: delphi@delphi.org.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@delphi.org.nz with Subject:
unsubscribe</BLOCKQUOTE></BODY></HTML>