Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help: RichText!
Message
 
 
To
11/04/1998 10:53:21
Ng Man Kit
Genesis Systems Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
User groups
Title:
Miscellaneous
Thread ID:
00091309
Message ID:
00091713
Views:
24
Hi...

>Is there any way to know more about richtx32.ocx? I want to print richtext format in VFP5.0. Is there any way to do that?

I have been involved in two ways to print with the RTF:



One: FoxPro Advisor: 100% code and works fine - but offers little control over the printer context. I provided testing and input for this article.

Two: FoxTalk: This solution uses the CommonDialog Control. In the Init() of the
common dialog - if you set the Flags Property to 0x100 - when the ShowPrinter() Method is invoked - a printer device context is created. You know this because the hDC property of the control has a new value. Anyway, you can pass this hDC to the SelPrint() Method of the RTF Control. This solution provides almost 100% control over the context. Here is how the code will work here:::

ThisForm.oRTF.SelPrint(Thisform.oleCommonDialog.hdc)


Once again, VB has an intrnsic Printer Object - which is a wrapper object for the many API calls that have to be used to properly manage a printer device context. Too bad VFP does not have the same thing. But, we can come close<g>.
Previous
Reply
Map
View

Click here to load this message in the networking platform