Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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);
Posted
Updated 28-Feb-19 7:54am
v2
Comments
CHill60 27-Feb-19 3:18am    
Check your connection string
RmcbainTheThird 27-Feb-19 8:59am    
What type of security are you using? If it is integrated then it may be the user using the app does not have rights to the db.

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!!
 
Share this answer
 
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!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900