Printing scrollable form

前端 未结 5 1866
面向向阳花
面向向阳花 2020-12-21 16:37

I have a scroll-able form which I would like to print entirely.

I have already tried using this code to print it:

    Private Sub btnPrint_Click(ByVa         


        
5条回答
  •  时光说笑
    2020-12-21 17:01

    Check for the MSDN Forum of the code here the code like this

    1. In the Toolbox, click the Visual Basic PowerPacks tab and then drag the PrintForm component onto the form.

    2. The PrintForm component will be added to the component tray.

    3. In the Properties window, set the PrintAction property to PrintToPrinter.

    Add the following code in the appropriate event handler (for example, in the Click event handler for a Print Button).

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

    and here got the same question as your and have been answer.

提交回复
热议问题