Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatted String(s)
Message
 
To
26/05/2006 02:40:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01125166
Message ID:
01125172
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform