Monday, February 11, 2008

Crystal Reports Printing

Had a fun run into the world of crystal reports today, just wanted to get it down here for the masses(yeah, like anyone is reading this.)

I had an issue using the PrintToPrinter function when printing straight to a printer from an ASP.Net app. There were many errors but the end result problem is that printing to a network printer requires you to set the printer up very specifically. During the add printer process you need to set the printer up as a local printer, then the address as the printer's IP. Give the printer a name and use that in your code.

Bam, done. Pretty easy for a slim hours work.

Now I just have to figure out why my fonts are changing from the report preview to the printer.

No comments: