1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Vb2005 Possible Printing Solution

Discussion in 'Visual Basic ( VB )' started by hardwartech, Jun 20, 2008.

  1. hardwartech

    hardwartech New Member

    Joined:
    Jun 20, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Wow i can say the new printform is super cool.. but the thing is .. it is not printing everything.. as my form has a scroll bar and wider the printform does not capture all of it. the printform method doesnt allow printing of initial value ?

    another thing is as printform and other formprinting are screen captures its depends on the size of our screens right ? meaning different computer has different page break ?

    another thing is the form locking.. i tried turning it to true but i still can move the form around.


    Code:
    Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
            Dim b As New Bitmap(Me.ClientRectangle.Width, Me.ClientRectangle.Height)
            Me.DrawToBitmap(b, Me.ClientRectangle)
            e.Graphics.DrawImage(b, 0, 0)
        End Sub

    current codes i have

    Code:
    PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview 
             
            PrintForm1.Print() 
     

Share This Page