安装的应用程序中打印报告出错 [英] Error printing report in installed application

查看:162
本文介绍了安装的应用程序中打印报告出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Winform和C#中开发应用程序,使用通过存储过程动态填充的玻璃报告。



我在加载和打印报告时没有问题执行时间但是当我安装应用程序时,我在发送报告时收到错误打印



Develop an application in Winform and C #, use the glass report filled dynamically with a stored procedure.

I have no problem loading and printing the report at the time of execution but when I installed the application, I am receiving an error when sending the report print

LogOnException Could not connect to the database Error (0x8004100F)



提前谢谢



我尝试了什么:



我打电话打印


Thank you in advance

What I have tried:

I call print with

CR.PrintToPrinter(1, true, 0, 0);

推荐答案

Thanks to both, we went back to building the report and reinstalling the system.
In addition to that, confirm that the user in which the system was installed had access to the database and the printing function
Thank you!!

Thanks to both, we went back to building the report and reinstalling the system.
In addition to that, confirm that the user which the system was installed had access to the database and the printing function
Thank you!!


这篇关于安装的应用程序中打印报告出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆