Printing scrollable form

前端 未结 5 1894
面向向阳花
面向向阳花 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:16

    I Think your answer is in the article
    All you need is to reference to FormPrinting library (or import the source to your solution).

    Private Sub btnPrint_Click(object sender, EventArgs e)
            {
                var fp = new FormPrinting.FormPrinting(this);                
                fp.Print();
            }
    

    will do the printing job.
    I have tested the library, having no problems with scrollable contents like images and ....

提交回复
热议问题