Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Printing Rich TextBox
I am trying to print the content of the rich text box, here is how i do it:
oCommonDialog.Flags = 0x100
oCommonDialog.ShowPrinter
oRichTextBox.SelPrint(oCommonDialog.hdc)
It Works fine but if the users press cancel on showPrinter(), i get an invalid hdc error message. I have 2 questions:
1. How could i avoid the error message ?
2. How could i print without showing the ShowPrinter() Dialog ?
Thanks
Suivant
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