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:
00160399
Views:
18
Thanks john!

I am going to order CR 7.0 as you suggested to see if I can do what I want from there. BTW - I received an email from the CR folks and they told me that there is little info on VFP & CR. I'm hoping to find what I need to know here on the UT...I usually do!

Thanks again for your expert knowledge!

John.



>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