Information générale
Catégorie:
Groupes d'usagers
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>.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement