cancel
Showing results for 
Search instead for 
Did you mean: 

Default printer was not valid, switching to 'GetUnPrinter'

Former Member
0 Kudos

I recently deployed my web application to Red-Hat Linux and I'm receiving the following error: "Default printer was not valid, switching to 'GetUnPrinter'."

I pinpointed the line of code throwing the exception, which is: ReportClientDocument reportClientDoc = new ReportClientDocument();

I designed the report using CR4E. The exception isn't thrown on my local XP machine. I saw another forum topic with a similar issue (http://diamond.businessobjects.com/node/1245), but it wasn't helpful. Does anyone have any suggestions?

Thanks,

Kevin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I think the only way to remove the error is to install CUPS and a default printer.

However a report is generated on my site without CUPS and a default printer installed. The only thing is that it reports an error in the log file as soon as the .rpt file is opened in java.

Will BO change this in an future release? There isn't much response either in on the forum from BO regarding this problem allthough many have faced this issue.

regards,

HP

Former Member
0 Kudos

You'll see similar error messages when you open a file in the Crystal Report Designer client application, and not just with the Crystal Report for Eclipse designer or the JRC.

The JRC uses the Java Print Service to retrieve printer information - this ensures that the fine placement of fonts and graphical objects are consistent across platforms.

If you specify a specific printer against which the rpt is to be designed, then it will look for the very same printer at runtime. If that printer is not available, then it will try using the default printer for the machine. If there is no default printer, then it will load a very simple dummy printer model - the UnPrinter.

The exception message is that - it's an explicit warning that the formatting of the report may differ from design time.

What CUPS and default printer installation does on your Unix machine is expose a default printer to the Java JVM Print Service.

Sincerely,

Ted Ueda

Former Member
0 Kudos

I'm experiencing the same behaviour on linux.

Is it necessary to install a default printer on linux to make CR4E work?

Any suggestions to workaround this problem are welcome.

Thanks,

HP