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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -