what is the copde of printer the data in text and in picture
and thankyou for all
Printable View
what is the copde of printer the data in text and in picture
and thankyou for all
Print text.
VB Code:
Printer.Print Text1.Text
There are various ways to print a picture, usually API.
thankyou mr Keithuk
for help.
That was just a simple on line explanation.
VB Code:
Printer.FontName = "Arial" 'The name of the font used in printing Printer.FontSize = 12 'The font size Printer.FontBold = True 'Bold is turned on Printer.FontUnderline = True 'Underline is turned on Printer.Print "This is a printer test" 'Print a test line Printer.FontBold = False 'Bold turned off Printer.FontUnderline = False 'Underline is turned off Printer.Print 'prints a blank line Printer.Print Text1.Text 'Prints all text in Text1 Printer.EndDoc 'Terminates a print operation sent to the Printer _ 'object, releasing the document to the print device or spooler.
All this info in in the VB6 help, which I don't think you have.
thankyou mr for your interesting
I have another question if you allow
waht is the code for print the data from the object a picture
like lines
thankyou for your generosity
Here are a couple of apps that will print pictures.
The Print Picture.zip uses Apigid32.dll (enclosed). Just place it in your Windows\System folder there is no need to register it. It will print a normal VB picture and an enlarged one to fit A4 paper.
I've used VB4 16bit and VB5. If I used PrintForm there was no problem, full form print. With VB6 if I use PrintForm I only get a quarter of the form, using the same printer. So now I use the enlarged one.
Experiment, have fun.
:wave: