October 11th, 1999, 07:43 PM
I have a picture box name picDisplay, and am sending data to it that you can see. How can I print the data in the picture box? I have tried picDisplay. print and printpicDisplay, but neither of these works. I know how to print the entire form, but that's not what I want.
Tahnks!
Dr_Michael
October 12th, 1999, 02:10 AM
Add this code to a module:
public Sub PrintPicture(Prn as Printer, Pic as Picture)
on error GoTo ErrorRoutineErr
Prn.PaintPicture Pic, 0, 0
ErrorRoutineResume:
Exit Sub
ErrorRoutineErr:
MsgBox "Project1.Module1.PrintPicture" & Err & error
resume next
End Sub
Then, add this code at the cmdPrint_click() event:
PrintPicture Printer, Picture1.Picture
Printer.EndDoc
All right?
Michael Vlastos
Automation Engineer
Company Modus SA
Development Department
Athens, Greece