>>You're welcome. I use it when I need preformatted text in word. Create an htm with textmerge, open in word, saveas worddoc, close and erase htm.
>>Cetin
>
>So, when you save it as a worddoc ... it becomes a normal word document ?
>
>
>Also, I would normally have just used low-level file functions to create the HTM file. Is there some additional advantage to using textmerge feature ?
Yes it's saved as a normal word doc.
Textmerge is easier to code IMHO. ie:
set textmerge to memvar myVar noshow
set textmerge on
\<HTML><BODY><TABLE>
scan
\<TR>
if SomeCondition
for ix=1 to fcount()
\<TD class=<<iif(Something,"BoldEtcClass","AnotherClass")>>>
\\<<eval(field(ix))>></TD>
endfor
else
endif
\</TR>
endscan
\</TABLE></BODY></HTML>
set textmerge to
set textmerge off
Cetin