Printing screen in VB6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • perro
    New Member
    • Jul 2008
    • 2

    Printing screen in VB6.0

    I want to print the screen croped from all sides on A4 landscape in Visual Basic 6.0.
    When I run this script it should move itself into background, print screen, move picture from clipboard into PictureBox or Image in report, crop it from all sides for specified lenght, stretch and center it across paper A4 landscape and print on default printer.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    what you want is ok ,but what you have tried so far ?

    Comment

    • perro
      New Member
      • Jul 2008
      • 2

      #3
      I included "user32" in my project, and with button did on Image1 in Form1:

      Form1.Hide
      DoEvents
      Clipboard.Clear
      keybd_event vbKeySnapshot, 0, 0, 0
      DoEvents
      keybd_event vbKeySnapshot, 0, &H2, 0
      DoEvents
      Image1.Picture = Clipboard.GetDa ta(vbCFBitmap)
      DoEvents
      Form1.Show
      Me.Refresh

      It got me a picture of a screen on my Image1. But how to crop the image, then stretch it and center to A4 landscape in report, and print it?

      Comment

      Working...