Link to home
Start Free TrialLog in
Avatar of jmast01
jmast01Flag for United States of America

asked on

Unable to print Crystal report

When trying to print a report from a Win 7 64 bit computer, get an error "Invalid handle." This does not happen when run as admin account. But non admin account any printer, even a pdf creator will generate the same error.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

do you have a printer installed in the non-admin account?
Avatar of jmast01

ASKER

Yes there are multiple printers installed. Am able to export reports without problem. But as soon as try to print it has pop up that says "The handle is invalid"
and do you have a default printer? what if you try to print from notepad?
Avatar of jmast01

ASKER

Yes there is a default printer. I can print just fine from notepad and applications. It is just when I am viewing a report in a crystal reports runtime 2008. Sorry if I was not clear. So far I have only noticed this happening from 64 bit version of Windows 7. When not signed as an admin account.
Avatar of Mike McCracken
Mike McCracken

How are you running the reports?

mlmcc
Avatar of jmast01

ASKER

The reports are run from with an a program, that is used for order processing. Some of the computers on our network have a generic logon. On these computers, the shortcut to the program is set to run as administrator prompts users for a username and password. This allows for different users to run the program with their own credentials without having to logon to the computer. Within this program are different reports that can be run. When an admin account is used to sign on, it is able to print these reports. But when logged into the program with a non-admin account users can not print.
   However if a non admin account logs onto the computer directly, with their network account, they can run the program and print. Both ways the program is using the same Active directory credentials.
So, a user logs in to the computer and can print but if the same user logs in through the program they can't print?

mlmcc
Avatar of jmast01

ASKER

Yes, we have used the same process in xp and vista without problem.
How is the application controlling the login?

Is it actually logging the user in or just verifying the login credentials then allowing the user to run?

Can they view reports or is the application strictly for printing?

mlmcc
Avatar of jmast01

ASKER

The shortcut is set to run as administrator from the advanced tab. This prompts the user to enter a valid network username and password. After they enter their logon info they can use it to do what they need. Generating reports and printing them is only one portion of the program. The users are able to generate a report, can even export it. But when they go to print it, "The handle is invalid"
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmast01

ASKER

I did discover that this is not an issue with crystal reports. When you try to print from the program and not in CR runtime there is a different error message. Again this is only when running the program as different user that is already logged in. This must be a problem with the program that we are using. Consider this closed.