General information
Category:
ActiveX controls in VFP
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only