Girish Vankayala

Greenhorn
+ Follow
since Dec 16, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Girish Vankayala

Here is my code for displaying the printer dialog and the printing



This works fine on windows but not on a Linux machine.
The Printer Selection dialog is displayed and after the user selects a printer, it does not print.
There is no printer job created either.

Don't know if I am doing something wrong or if it is a problem with the SWT Linux jar.
The Linux system uses a different SWT jar, a 64 bit gtk jar.

System configuration:
OS Name: Linux
OS Version: 2.6.24-26-generic
Architecture: amd64

Thanks a lot in advance for your help.
15 years ago
Thank You for your reply Rob. I will make sure I use the "code" tags next time. That was my first post

I heard today that there is more than one client with the same problem. I will ask one who had this problem yesterday to update their printer drivers and check if it fixes the problem. We usually tell the clients to update their Java when we have a problem like this but this client is on Java 1.6.0_17.

Thank You again for your reply.
15 years ago
My application has a print screen button. Off late a few clients have sent in a few error reports. This is an example stack trace:

StackTrace:


I have not been able to duplicate the problem myself but a client told me that this happens often (does'nt happen everytime they click the "Print Screen" button), and when it fails it causes the application to freeze and they have to terminate the app using the "Task Manager".

Here is the action my "Print Screen" button is bound to:



Here is my implementation of the PrintUtilities class, with the print methods:

15 years ago