There are various ways to print a picture, usually API.
Last edited by Keithuk; Dec 29th, 2004 at 05:43 PM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
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.
Last edited by Keithuk; Dec 29th, 2004 at 05:43 PM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
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.
Last edited by Keithuk; Dec 5th, 2004 at 09:06 AM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.