Ok I had a project all finished and working till this morning when I got told that they wanted to change something, drop the use of Excel. Got to love when a project gets changed for no good reason.

Anyway my program creates a HUGE report, something like 8000 pages. What I had working was the report was getting put in Excel. Then the user could go in and work with the data, or print it, etc. But now they want the data to go strait to the printer.

So I need to know whats the best way to print to a printer (C++)something that well need to be formatted, with headers, columns, totals, etc.

If someone has some sample code or a wrapper class to help me do the ASAP that would be great. The clock is against me.