inserting page break while printing datagrid

i am trying to print out a datagrid.  the datagrid is listing out card orders ordered by value.  i need each card value to be on a different page. ie page 1 will list out 25 $49 cards, page 2 will list out 50 $29 card, etc....

my initial approach was to use the word com object to build a new word doc and the redirect the user to the doc.  however, once i came across System.Drawing.Printing i figured there should be a way to do it right from the web page.

any ideas?
Who is Participating?
mmarinovConnect With a Mentor Commented:
Because the web page is at the client the only way of printing pages is with client script. There is a way of inserting page breaks with style sheets
take a look at this solution

meyerc74Author Commented:
thanks...that works...i just parse out a html string with <br style="page-break-before: always">
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.