Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print the RTF format of the richtextbox?
Message
De
28/01/2001 04:28:56
 
 
À
21/01/2001 04:40:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00466331
Message ID:
00469477
Vues:
7
I find a solution myself!
We need a Common Dialog control in the form.

* Use SelPrint of RichTextbox control
* CommonDialog Control's flags

* Define constant
cdlPDReturnDC = 256
cdlPDNoPageNums = 8
cdlPDAllPages = 0
cdlPDSelection = 1

with this.parent.CommonDialog1

* Set CommonDialog Flag
.Flags = cdlPDReturnDC + cdlPDNoPageNums

If this.parent.oleRtf.SelLength = 0
.Flags = .Flags + cdlPDAllPages
Else
.Flags = .Flags + cdlPDSelection
EndIf

* Show printer prompt
.ShowPrinter
endwith

this.parent.oleRtf.SelPrint( this.parent.CommonDialog1.hDC )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform