Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated)
Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated)
Rate Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated)
(1(1 Vote))
Printer.ScaleMode = vbCentimeters 'Sets unit of measurement
Picture1.ScaleMode = vbCentimeters 'Sets unit of measurement
Picture1.ScaleWidth = Picture1.Picture.Width / 1000 'Resizes Picture1
PicX = (Printer.ScaleWidth / 2) - (Picture1.ScaleWidth / 2) ' Calculates Center
Printer.PaintPicture Picture1, PicX, Printer.CurrentY 'Makes Printer Print Pic
Printer.ScaleMode = 1 ' Resets the Proper Units for Printer
Picture1.ScaleMode = 1 ' Resets the Proper Units for Printer
Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated) Comments
No comments yet — be the first to post one!
Post a Comment