printing - PrintDocument1_PrintPage vb.net -


i've tried print document many rows in datagridview , want print continously having next page data not including 1st page gives me same 1st page heres code :

 dim integer   private sub printdocument1_printpage(byval sender system.object, byval e system.drawing.printing.printpageeventargs) handles printdocument1.printpage      = + 1     dim bm new bitmap(me.panel2.width, me.panel2.height)     panel2.drawtobitmap(bm, new rectangle(0, 0, me.panel2.width, me.panel2.height))     e.graphics.drawimage(bm, 0, 0)     if (i = 1) e.hasmorepages = true else e.hasmorepages = false     dim aps new pagesetupdialog     aps.document = printdocument1  end sub 

can me in kind of problem sorry wrong grammar thanks

what doing screen print see get. if want stay way, need advance rows on grid see different records.

what should printdocument print out looks document instead of picture.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -