Help with simple VB Printing Problem 
Author Message
 Help with simple VB Printing Problem

Help....I can't seem to get the Printer Dialog to accept data from a
text box. I can get it with the RichText control with
Printer.Print ""
RichText.SelPrint Printer.hDC
Printer.EndDoc
But it bombs on a taxtbox with .SelPrint not being valid.
Any help ?



Thu, 01 Oct 1998 03:00:00 GMT  
 Help with simple VB Printing Problem

Quote:
>Help....I can't seem to get the Printer Dialog to accept data from a
>text box. I can get it with the RichText control with
>Printer.Print ""
>RichText.SelPrint Printer.hDC
>Printer.EndDoc
>But it bombs on a taxtbox with .SelPrint not being valid.

A text control doesn't have .SelPrint, I guess. Try Printer.Print
Text1.Text


--
Newbiehood is not a period of time, it's a way of life.

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Thu, 01 Oct 1998 03:00:00 GMT  
 Help with simple VB Printing Problem

Quote:
(DesignTyme) writes:
>Help....I can't seem to get the Printer Dialog to accept data from a
>text box. I can get it with the RichText control with
>Printer.Print ""
>RichText.SelPrint Printer.hDC
>Printer.EndDoc
>But it bombs on a taxtbox with .SelPrint not being valid.
>Any help ?

For a textbox you would just:

Printer.Print Text1.Text
Printer.EndDoc




Thu, 01 Oct 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help - Print - Help -Print - Help - Print - Help - Print - Help

2. Need help with simple VB/Excel problem

3. I need help with a simple DB/VB problem

4. Having problems with SIMPLE query in VB 6 and Access XP, Please Help

5. Simple Newbie Print Problem

6. simple printing problem?

7. Simple print listbox to disk problem!

8. Simple (?!) printing problem

9. Simple (?!) printing problem

10. Simple Problem....Want to print files as if from Windows Explorer

11. Simple printing problem

12. HELP HELP HELP Set document name of print job from VB HELP HELP HELP

 

 
Powered by phpBB® Forum Software