by Bullwinkle (3 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 1st March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated)
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
No comments have been posted about Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated). Why not be the first to post a comment about Shows how to use the printer to Print a Image or Picture and have it centered on the page (Updated).