VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Shows how to Print a Image or Picture and have it centered on the page

by Bullwinkle (3 Submissions)
Category: Graphics
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 Print a Image or Picture and have it centered on the page

Rate Shows how to Print a Image or Picture and have it centered on the page



'If you don't want it centered, take out the next 3 lines
Printer.ScaleMode = vbCentimeters
Picture1.ScaleMode = vbCentimeters
Printer.CurrentX = (Printer.ScaleWidth / 2) - (Picture1.ScaleWidth / 2)
Printer.PaintPicture Form1.Picture1, Printer.CurrentX, Printer.CurrentY
Printer.EndDoc

Download this snippet    Add to My Saved Code

Shows how to Print a Image or Picture and have it centered on the page Comments

No comments have been posted about Shows how to Print a Image or Picture and have it centered on the page. Why not be the first to post a comment about Shows how to Print a Image or Picture and have it centered on the page.

Post your comment

Subject:
Message:
0/1000 characters