|
-
October 11th, 1999, 07:43 PM
#1
print function
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!
-
October 12th, 1999, 02:10 AM
#2
Re: print function
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|