Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Vb2005 Possible Printing Solution (http://www.go4expert.com/forums/vb2005-printing-solution-t11496/)

hardwartech 20Jun2008 09:23

Vb2005 Possible Printing Solution
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.


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


PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview

All times are GMT +5.5. The time now is 15:01.