Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Rich TextBox
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Printing Rich TextBox
Miscellaneous
Thread ID:
00313948
Message ID:
00313948
Views:
90
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
Map
View

Click here to load this message in the networking platform