Skip to Content
0
Former Member
Jul 07, 2010 at 03:52 PM

Reports with multiple active data tables pop up logon windows

21 Views

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