Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2006, 05:40 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystall report 10 Login failure

I have develop reports in Crystall report 9 in VB.Net.Now i have install and upgrade report to Crystall report 10.Now when i run this report through project a database login dialogbox appears with server and database option empty and disabled and only user /password enbale. but when i enter user and password it gives login failure error.Plz help???
 
Old October 13th, 2006, 01:53 PM
Registered User
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can set a report's datasource connection info via code like in this sample:

    // assign the same database connection for each report
    conn.ServerName = "My_System_DSN";
    conn.DatabaseName = "MY_Database";
    conn.UserID = "SomeUserID";
    conn.Password = "SomePassword";
    for (i=0; i<objReport.Database.Tables.Count; i++) {
        myTable = objReport.Database.Tables[i];
        myLog = myTable.LogOnInfo;
        myLog.ConnectionInfo = conn;
        myTable.ApplyLogOnInfo(myLog);
        myTable.Location = myLog.TableName;
    }






Similar Threads
Thread Thread Starter Forum Replies Last Post
crystall report angelboy C# 2005 0 April 17th, 2007 02:42 AM
login failure yasminnnnn BOOK: ASP.NET Website Programming Problem-Design-Solution 2 February 27th, 2007 04:16 AM
Crystall Report Graphs wageche Pro VB 6 0 October 6th, 2006 03:44 AM
Crystall Report Issues bawa Crystal Reports 2 September 8th, 2004 11:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.