VB6 和 Crystal Reports 打印

发布于 2024-09-02 03:12:03 字数 251 浏览 5 评论 0原文

我有一个 VB6 应用程序中的 Crystal 8.5 报告。大约两天前,一切都很顺利。

从今天早上开始,每当我按“查看报告”时,它都会显示在屏幕上,但“打印”按钮被禁用,这意味着有 visible=false。我看不到它,所以我可以打印报告。

请记住,直到今天早上,一切都顺利进行,我能够打印所有报告。从今天早上开始,我无法打印其中任何一个。

选中“无打印机”复选框...

有人遇到过这个问题吗?

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 anyone had this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天暗了我发光 2024-09-09 03:12:03

每当 Crystal Reports 无权打印到给定打印机或打印机被视为无效时,打印按钮就会被禁用。如果在屏幕上查看报告之前未选择打印机,则使用默认打印机驱动程序生成报告。

尝试更改默认打印机并再次查看报告。如果有效,则说明您的驱动程序或打印机权限有问题。

如果您使用的是 Windows Vista 或 7,有时我必须通过转到打印机的属性页并授予当前用户管理打印机管理文档权限,在那里改变它们。这需要重新启动才能完全更新,即使 Windows 从未告诉您这一点。如果这不起作用,请尝试在 XP 兼容模式下运行 VB6 程序。

当用户尝试打印到 Active Directory 网络打印机并且没有“管理打印机”权限时,我也遇到过几次这种情况。我很少在损坏的打印驱动程序或适用于不同版本的 Windows 的驱动程序上看到这种情况。如果以上方法均无效,我会尝试下载最新版本的打印驱动程序并重新安装打印机。

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.

玻璃人 2024-09-09 03:12:03

当您从 VB6 应用程序查看水晶报表时,打印按钮有时会被禁用。尝试更改 VB 代码以显示“打印”按钮和“打印”按钮。打印设置按钮。完成此操作后,请再次从您的应用程序查看报告。如果“打印”按钮被禁用,请单击“打印设置”按钮并选择打印机,即使它是默认打印机。打印按钮将变为启用状态。这一直有效。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文