in recent years, has been working in the education industry, mainly responsible for the development of competition system, including online registration, arranging examination room, online examination, academic report and so on.
Printing function In this information age is very common, the browser comes with the printing function, the usual practice is to call Window.print () to complete.
So the Department of Education to our Internet Information Department put forward a higher level of demand: Batch printing! For all students taking the exam, the need to print each student's academic report, a total of 4, the overall survey of the exam 1 pages, the number of single-language results page of 3 pages, the total is 4 pages.
The demand is settled, must do, our eldest brother to stop this demand, or be dismissed, poor programmer.
Think for a few days, there is always a solution: the client program to request the student report page, the need to print pages, each page saved to an Excel file in the same sheet, sheet with the name of students,
Excel with class school campus name grade combination, and then the file compression, compression package.
Compressed package You see there is a number suffix, because the same campus students are batch requests, each print the number of students set in 50, the number of client programs may be stuck, the client program can be more open, may cause the server does not respond to the situation, this time the dress up compressed files will fail.
These files are sent to campus colleagues who download and print in batches.
. NET batch printing achievable scenarios