Results 1 to 2 of 2

Thread: Copying Picturebox to Printer, then printing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231
    at the moment I am trying to get the content of the picture box into the Printer's Device Content and print it off.

    The problem is tho, is that the BitBlt isnt working , throwing in some debuging it always returns a zero (error)

    Code:
    Public Sub PrintMe()
    #Const De_bug = True
    
    Dim lres As Long
    
    lres = BitBlt(Printer.hDC, _
                  0, 0, _
                  InnerBox.ScaleWidth, _
                  InnerBox.ScaleHeight, _
                  InnerBox.hDC, _
                  0, _
                  0, _
                  &HCC0020 _
                 )
    Printer.EndDoc
    
    #If De_bug Then
    MsgBox lres
    #End If
    
    
    End Sub
    oh also scalemode for all the controls are set to 3(pixel)
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    For the printer it's probably best to use Printer.PaintPicture, since speed isn't so much of an issue.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width