cancel
Showing results for 
Search instead for 
Did you mean: 

Reports with multiple active data tables pop up logon windows

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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

Answers (0)