Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatted String(s)
Message
 
À
26/05/2006 02:40:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01125166
Message ID:
01125172
Vues:
19
Hi Fred,

This is my standard code to generate RTF documents in VFP:
lcRTF = ;
  "{\rtf1\ansi\ansicpg1252\deff0\deflang1033"+;
  "{\fonttbl{\f0\fnil\fcharset0 Arial;\f1\fnil\fcharset0 Courier New;}}"+;
  "{\colortbl ;\red0\green0\blue255;\red255\green0\blue0;\red0\green255\blue0;}"+;
  "\viewkind4\uc1\pard\fs18 " + m.lcText + "}"
lcText holds the actual content. The following sample demonstrates common types of formatting:
lcText = ;
  "This is \b1 bold\b0 , \i1 italic\i0, '\b1\i1bold and italic\b0\i0 , \ul1 underlined\ul0  text." + ;
  "\par In a new line \f0 Font 0, \f1 Font 1" + ;
  "\par \fc2 \cf1 blue\cf0, \cf2 red\cf0, \cf3 green\cf0 ."
RTF codes start with a backslash and are terminated with a blank.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform