I have a Crystal 8.5 Report in a VB6 application. About 2 days ago, all worked like a charm.
Since this morning, whenever I press "View Report", it shows on screen, but the "PRINT" button is disabled, meaning has visible=false
. I can't see it so I can print the report.
Remember, until this morning all worked like a charm and i was able to print all reports. Since this morning, I can't print any of them
Checked the "NO PRINTER" checkbox...
Has 开发者_JAVA技巧anyone had this issue?
Whenever Crystal Reports does not have permission to print to a given printer or the printer is viewed as invalid, the print button becomes disabled. If no printer is being selected before a report is viewed on the screen, then the default printer driver is used to generate the report.
Try changing the default printer and viewing the report again. If it works, then there is a problem with your driver or printer permissions.
If you are using Windows Vista or 7, what I've had to do sometimes was give the current user Manage Printers and Manage Documents permissions by going to the printer's property page and changing them there. This requires a reboot to fully update even though Windows never tells you so. If that does not work, try running the VB6 program in compatibility mode for XP.
I've also had this happen a handful of times when the user was trying to print to an Active Directory network printer and did not have Manage Printers permissions. Rarely I've seen this happen on a corrupt print driver or a driver intended for a different version of Windows. If none of the above works, I would try downloading the latest version of your print driver and reinstalling the printer.
The print button sometimes becomes disabled when you view the a crystal report from a VB6 application. Try changing your VB code to display both the PRINT button & the PRINT SETUP button. Once you have done this, view the report again from your application. If the PRINT button is disabled, click on the PRINT SETUP button and select the printer even if it is the default. The PRINT button will become enabled. This works all the time.
精彩评论