on 08-26-2015 7:52 PM
SAP Crystal Reports, version for Microsoft Visual Studio v 13.0.14.1720
Microsoft Visual Studio 2013
I am writing a ASP.NET application to display CR2013 reports. These reports could run on any of our client databases (all of which have the same schema). There is a separate DSN for each client.
So, when I set the ConnectionInfo based on the client's DSN.
I can get the report to render just fine, but when I select something from the Group Tree, I get "Failed to open the connection." (see attached file)
I tried to set the connection info each time Page_Init runs, but I am still missing something.
Does anyone know what I am missing?
Thanks
Hi David,
Make sure you are using Sessions and PostBack methods to keep the report in scope.
Also, the code should be in the Page_Init section and not the Page_Load
Search here on how to use Postback and sessions if you need samples. Or click on the Overview tab and on the left there is a sample application links.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Don!
Makes total sense.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David
There is a KBA on this that may come in handy:
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.