Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Parsing Formatting Tokens
Message
De
27/03/2003 12:35:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/03/2003 12:25:54
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00770740
Message ID:
00770831
Vues:
15
>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform