cancel
Showing results for 
Search instead for 
Did you mean: 

Printer handling differs in Java Crystal Runtime and Crystal Reports 2008

Former Member
0 Kudos

We installed printer: XXX as a Print_To_File under Windows.

When we are printing from CR2008, window asking for a file name appears and if we click 'Canel' in this window, Crystal displays warning message:

Error starting print job. Please check your printer or network connection

If we try to perform the same operation under Eclipse with CR we will not get any message. I think the behavior should be equal in both of Crystal versions. That arouses problems because our application has the possibility to print using Java CR and Crystal Reports .DLLs. User may chose, which version he want to use. But in one of these versions (using .dlls) printing fails in such case in other (Java) application does not rise any exception.

greetings

PSI_AG

Accepted Solutions (0)

Answers (1)

Answers (1)

ted_ueda
Employee
Employee
0 Kudos

There's two things here:

  • Crystal Reports Java uses the Java Print Service, and not direct win32 calls - the dialog box you see in the Designer is the Windows Print dialog box.

  • Crystal Reports java doesn't expose the print to file property of Java Print Service.

So there's really no dialog box to pop up, and even if it did, nothing to communicate the file where you want to print.

I'd recommend exporting to PDF rather than print to file.

Sincerely,

Ted Ueda