Great,
Todays a Jewish Holiday, and I am taking advantage of the quiet office to get a headstart on the week!
I am working on some articles on Design Patterns: I have an Iterator based on the Items collection that can be applied to any of the collections in Office - fun stuff!
And you?
>Hey dude...
>
>Hows it hangin????
>
>
>
>>At least I got one of the names right ;-)
>>
>>>Hi,
>>>
>>>The RTF Control supports a SelPrint() method. To use it, you need to send an hDC parameter. The hDC is a handle to a printer device context. Visual Basic handles this automatically. We can do this same thing in VFP, but we need to use the services of the Common Dialog Control. Ted Roche, Christof Lange, and I collaborated on a programmatic way to do this without the Common Dialog - but it never has worked as cleanly as the Common Dialog Solution.
>>>
>>>To illustrate how to do the following:
>>>
>>>1. Add an RTF Control to the form - name it RTF
>>>2. Add a Common Dialog Control to the form - name it CommonDialog
>>>3. Add a VFP CommandButton to the Form.
>>>
>>>In the Init() of the CommonDialog, add this code:
>>>
>>>This.Flags = 0x100
>>>
>>>In the Click() of the CommandButton, add this code:
>>>
>>>This.Parent.CommonDialog.ShowPrinter
>>>This.Parent.rtf.SelPrint(This.Parent.CommonDialog.hdc)
>>>
>>>
>>>Type some text into the RTF control and click the button.
>>>
>>>
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>Does any body knows how to send the rich text formatted text to printer. (Note: RichText is saved in a memo field.) and we are using RichText active X components to show fonts, Size and Colors on the form but when you we print it through the report writer or directly to the printer it Prints Codes and Special Characters.
>>>>
>>>>Help......
>>>>
>>>>
>>>>Thanks
>>>>
>>>>Abdul H. Bokhari,
>>>>
>>>>CanaSoft / CronoMagic Inc.