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 11th, 2005, 07:41 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database Connection

Hi All,
Need some help in database connection and displaying a report in the CrystalReportViewer control. The report is a simple report with no parameters, I highly appreciate your help.

Right now I am using this bu do not have an idea as to what is happening.

crConnectionInfo = new ConnectionInfo();
crConnectionInfo.ServerName="Local";
crConnectionInfo.DatabaseName ="Duc";
crConnectionInfo.UserID ="sa";
crConnectionInfo.Password =" ";
foreach(CrystalDecisions.CrystalReports.Engine.Tab le crTable in crTables)
{
crTableLogonInfo=crTable.LogOnInfo;
crTableLogonInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogonInfo);
            }
CrystalReportViewer1.Width =500;
CrystalReportViewer1.BorderWidth =1;
CrystalReportViewer1.ReportSource=@"c:\inetpub\www root\WebApplication1\CrystalReport1.rpt";

New to Crystal Reports, can some one pls correct, URGENT.

Thanks,
Zindagi11





Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Connection to Access Database reachsevar ASP.NET 2.0 Basics 1 November 28th, 2007 08:56 AM
Database Connection oneillg PHP Databases 1 October 17th, 2007 04:48 PM
Database Connection kapi.goel SQL Language 2 February 14th, 2006 07:01 PM
database connection Nitin_sharma Classic ASP Databases 1 February 8th, 2005 10:23 AM





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