on 07-07-2010 4:52 PM
I have several reports that use multiple active data tables as main tables. There are no sub reports in use at all and there are no direct database connections either. Every time I try to run these reports, a logon screen pops up asking for the user name and password of the database. The string in the server name field is the full path to the TTX file that was used to create the table in the RPT file. These reports all work properly with Crystal 11 with our C++ RDC interface. This issue occurs with the C# interface for Crystal 2008. Is there something incorrect in the way the active data is being set in our C# code? No errors or exceptions are displayed during the execution but the logon windows still pop up. I tried removing the call to ReportDocument.SetDatabaseLogon from our interface but that has had no effect. Below is a code snippet showing how the data is set.
foreach (Table table in ReportDocument.Database.Tables)
{
DataTable dataTable = ProprietaryFunc(table, "proprietary stuff") // converts data from our app to a C# DataTable
ReportDocument.SetDataSource(dataTable);
}
Crystal Reports 2008 - 12.2.0.290
Visual Studio 2005 - 8.0.50727.762
See if the blog [How to use reports based on multiple TTX files in Visual Studio .NET|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18897] [original link is broken] [original link is broken] [original link is broken]; helps.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.