Quantcast
Viewing all articles
Browse latest Browse all 3636

Crystal Reports dynamic logon Database connection Procedure Reports

Hi !

 

I have an application on .Net C#. (Visual Studio 2015) This application prints reports using the crystal engine class for .NET. (I am using the last release for VS2015, I mean the v.13.0.16 of the engine)  All ok at this point...

 

Actually,  I need to change the database logon connection of some reports in a dynamic way from C# , for this I have found the appropriate code for it, and at this point all is ok, because my DB logon of the reports change in a dynamic way...  The problem here is that it only works if the report is using tables or views, but when my report have a store procedure it fails the connection! given to my this error:

 

Invalid report file path.Invalid report file path.Failed to retrieve data from the database. Details: [Database Vendor Code: -440 ]

 

An additional thing here is: if I preset the logon connection in the report from Crystal Reports, and when i choose the dynamic DB logon from C#, when these 2 logon connection are to the same DB, then, the report with procedures works! It's a so rare thing, I don't know if crystal give a different logon validation when its about procedures.

(Im using DB2 IMB DataBase)

 

 

I hope you can help me, thanks so much!


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>