Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
| Search | Today's Posts | Mark Forums Read
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 December 12th, 2005, 06:36 AM
Registered User
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Web Report asking User name/password

I am having CR Ver 7.0/Win 2000 Server/SQL Server 2000, and from php I am calling Crystal Report. I am passing username and password also. But it is asking database user name and password more than 5
times in a single page. After giving also it is not opening the report and again it is asking the same.
If any one suggest to solve it, it will be highly appreciated.
Thanks and Regards,
Old December 20th, 2005, 06:55 AM
Authorized User
Join Date: Jun 2005
Location: Kathmandu, , Nepal.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep

create an ODBC connection to the databse and using report expert maintain a link with the database

Old January 22nd, 2006, 04:40 AM
Authorized User
Join Date: Jan 2006
Location: Hyderabad, Andhra Pradesh, India.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Dear Brother.
I never Worked on PHP, but i am working on DOtnet .
In Dotnet i used Crystal REport viewer, and i worked on dynamic creation of reports also.
so i think its my duty to show u how i worked in that,
Firstly , ur problem is in Login department.
So it means that , ur code may not be having enough logon info. splly in crystal reports we have to provide the logon info for every table and then for the report.
i will show u a sample here..............

Dim Rport As New CryRpt20
            Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
            Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
            For Each myTable In Rport.Database.Tables
                myLogin = myTable.LogOnInfo
                myLogin.ConnectionInfo.ServerName = ServerName
                myLogin.ConnectionInfo.DatabaseName = DatabaseName
                myLogin.ConnectionInfo.Password = Password
                myLogin.ConnectionInfo.UserID = UserName
            CrystalReportViewer1.Visible = True
            Rport.SetDatabaseLogon(UserName, Password, ServerName, DatabaseName)

            Rport.SetParameterValue("YEAR_ID", lstYear.SelectedValue)
            Rport.SetParameterValue("CAT_DESC", lstcat.SelectedValue)
            Rport.SetParameterValue("GLOBAL_STATUS", lstGStatus.SelectedValue)
            CrystalReportViewer1.ReportSource = Rport

Username is the Global variable .and password and so on ... all this info abt the logoin are global variables.

hope u get my point,

Mohammed Raza Ullah Khan

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report 9 password protected mdb ACCESS sajid_rauf Pro VB Databases 2 July 27th, 2007 02:29 AM
User selection to sort records in a Crystal Report MisterN Crystal Reports 1 January 24th, 2007 01:03 PM
How to set password to exported Crystal Report jdaulagar Beginning VB 6 0 January 10th, 2007 04:19 PM
changing Password dynamically in crystal report irfanthegame Crystal Reports 0 October 7th, 2005 06:59 AM
how to show user interface data in crystal report sanjay_jadam Crystal Reports 1 May 26th, 2005 02:25 AM

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