Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Danadanny
  Where is Danadanny?
 
 United Kingdom
 Danadanny
 Tags
Subject: RE: Print Rich Text from memo field
Thread ID: 89779 Message ID: 116100 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Thursday, December 14, 2006 12:10:35 PM         
   


> Hi Mike,
> Can you kind explain the rationale for:
>
> (1) "Insert Into ctext (lctext) Values (LCSTR)"
>
> (2) "Set Textmerge On ALLT(cText.lcText)"

I am not sure what to answer. #1 you need insert the string value (LCSTR) into a memo field (lctext) since the solution requires a memo field.
#2. This is the syntax for TEXTMERGE. Take a look at the help file.

>>> Is it possible to omit the "lctext" column?

I am not sure how else you would do the TEXTMERGE.

> > To add to Frank's comment here is the code I used (adding a picture control to a report).
> >
> >
_rtfFile = "c:\"+Sys(3)+".rtf"
> > Create Cursor ctext (lctext m,gText g)
> > LCSTR= "{\rtf1\<font color="Blue">ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}+;
> > {\colortbl ;\red255\green0\blue0;\red0\green0\blue0;}+;
> > \viewkind4\uc1\pard\cf1\b\fs18 test text again\cf2 sdfasd\cf0\b0+ ;
> > \par }"
> > Insert Into ctext (lctext) Values (LCSTR)
> > Set Textmerge To &_rtfFile Noshow
> > Set Textmerge On
> > 	\\<<ALLT(cText.lcText)>>}
> > Set Textmerge To
> > Append General gText From &_rtfFile Class "RICHTEXT.RICHTEXTCTRL.1" 
> > Report Form C:\TEST.FRX Preview Noconsole
> > ERASE &_rtfFile 

> >
>
> Hi Mike,
> Can you kind explain the rationale for:
>
> (1) "Insert Into ctext (lctext) Values (LCSTR)"
>
> (2) "Set Textmerge On ALLT(cText.lcText)"
>
>
> Is it possible to omit the "lctext" column?
> Also, what does these symbols "\\<<...>>}" mean?
>
> Thanks
> Danny.



Mike Gagnon


ENTIRE THREAD

Print Rich Text from memo field Posted by Tony Georgeson @ 3/3/2006 1:54:01 AM
RE: Print Rich Text from memo field Posted by Frank Cazabon @ 3/3/2006 11:15:58 AM
RE: Print Rich Text from memo field Posted by Mike Gagnon @ 3/3/2006 12:15:13 PM
RE: Print Rich Text from memo field Posted by Tony Georgeson @ 3/3/2006 6:24:12 PM
RE: Print Rich Text from memo field Posted by Mike Gagnon @ 3/3/2006 11:37:16 PM
RE: Print Rich Text from memo field Posted by Danadanny @ 12/14/2006 10:42:12 AM
RE: Print Rich Text from memo field Posted by Mike Gagnon @ 12/14/2006 12:10:35 PM
RE: Print Rich Text from memo field Posted by Danadanny @ 12/14/2006 12:32:08 PM
RE: Print Rich Text from memo field Posted by Mike Gagnon @ 12/14/2006 1:06:03 PM
RE: Print Rich Text from memo field Posted by Danadanny @ 12/14/2006 1:10:52 PM