Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rtf printing
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00155498
Message ID:
00160289
Views:
30
If you want to use a VFP report, you will need to use a General Field that references a word document. You can however, print from an RTF control.

Here is some code to get you started:

**************************************************
*-- Form: form1 (d:\temp\foo.scx)
*-- ParentClass: form
*-- BaseClass: form
*-- Time Stamp: 11/22/98 09:18:06 AM
*
DEFINE CLASS form1 AS form


DoCreate = .T.
ShowTips = .T.
Caption = "Form1"
Name = "Form1"


ADD OBJECT rtf AS olecontrol WITH ;
Top = 24, ;
Left = 48, ;
Height = 97, ;
Width = 289, ;
Name = "RTF"


ADD OBJECT commondialog AS olecontrol WITH ;
Top = 144, ;
Left = 12, ;
Height = 100, ;
Width = 100, ;
Name = "CommonDialog"


ADD OBJECT cmdprint AS commandbutton WITH ;
Top = 168, ;
Left = 132, ;
Height = 27, ;
Width = 84, ;
Caption = "Print", ;
Name = "cmdprint"


PROCEDURE commondialog.Init
This.Flags = 0x100
ENDPROC


PROCEDURE cmdprint.Click
This.Parent.CommonDialog.ShowPrinter
This.Parent.RTF.SelPrint(This.Parent.CommonDialog.hDC)
ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************



>I'm looking for information on how to print rich text. I'm trying to use the rich text control, memo field and report writer to conduct a simple mail merge. Is this possible, or do I have to use a word processor to print rtf from memo? I haven't been able to find much information on how to use the rich text control in this manner. Any help is *greatly* appreciated :-)
>
>Thanks.
>
>John.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform