Skip to Content
author's profile photo Former Member
Former Member

Reports with multiple active data tables pop up logon windows

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

Crystal Reports 2008 -

Visual Studio 2005 - 8.0.50727.762

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 07, 2010 at 04:39 PM

    See if the blog [How to use reports based on multiple TTX files in Visual Studio .NET|] [original link is broken] [original link is broken] [original link is broken]; helps.


    Follow us on Twitter

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.