Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey every body!
I was wondering what are the codes that will let my application print using the printer?
cuz i managed to add the tools but didn't manege to add the codes :S
any one can help please?
Posted

Depends on what you are attempting to print, but post some code to give us a clue as to where you need help.

This may help.[^]
 
Share this answer
 
so are you saying that on your form, you added things like the PrintDocument, PrintPreviewControl, PrintDialog, etc...?

Cause if so, then just google each control to see how to use it.
As an example:
VB PrintDialog[^]
 
Share this answer
 
if i have text in a text box and i want to print it on a paper, what are the codes for that?
 
Share this answer
 
Ok, I assume you have a textbox, with text in it, and you wish to print the text then this should do it.


Private Sub Command1_Click()
    Printer.Print textbox1.Text
    Printer.EndDoc
End Sub
 
Share this answer
 
the thing is i cant find: PRINTER.PRINT!!
i was unable to find the PRINTER code in visual studio 2010!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900