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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.