Last post Oct 28, 2016 10:10 AM by Eric Du
Oct 27, 2016 12:42 PM|av2020|LINK
I am having gridview result which inputed from SQL query, sample below,
Above result should be printed by each department details with separate page. with one single click console app should fire the printing command .with below result in separate page print out.
Oct 28, 2016 10:10 AM|Eric Du|LINK
According to your description ,
1. you could select all data from database order by department name in SQL sentence.
2. then bind them to gridview, traverse each row and get department name, when this department name is different with the before department name, append a page break .
3. when you print it, it will show different page with different department name!
About more details, you can refer Nan's reply.
Page break after every row records change: