I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code:

Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
        Dim settings As New System.Drawing.Printing.PrinterSettings

        sPrintForm.PrinterSettings = settings
        settings.DefaultPageSettings.Landscape = True

        sPrintForm.PrintAction = Printing.PrintAction.PrintToPreview

    End Sub

Could somebody please show me how to print the whole of the page, including the areas that can't be seen?

I've already tried using

PrintForm.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)

and that didn't work.

Thanks in advance (See attached file for image)

Recommended Answers

hye , is in this thread you are asking some new question , http://www.daniweb.com/software-development/vbnet/threads/417441 this is also your thread and you ask here same question , please do not post single question multiple time …

Jump to Post

All 3 Replies

I'm sorry, I'm just really in need of a solution to the problem and I thought that since I posted yesterday, nobody was going to read it anymore :(.

Is there a way of deleting threads?

i dont know what is the method to delete a thread , but you can mark this thread is solved , and just use first thread to get ans .


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.