473,466 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to bind the same data using crystal reports

19 New Member
SqlConnection cn3=new SqlConnection ("User ID=sa;Initial Catalog=usermodule;Data Source=NEW5");
SqlDataAdapter da=new SqlDataAdapter (Application["str1"],cn3);
DataSet ds=new DataSet();
da.Fill (ds,"inoutdetails");
//CrystalReportViewer1.DataBind();
DataGrid1.DataSource =ds.Tables[0];
DataGrid1.DataBind();
Oct 6 '06 #1
3 3216
radcaesar
759 Recognized Expert Contributor
Drag and Drop CrystalReportViewer from Toolbox

Add Crystal report by selecting AddExistingItem (By Right Click on the Project in Explorer)

Select Local Project Items ----> Utility ----> Crystal Report (Its CrystalReport1.rpt)

Then In Form Load event,

CrystalReport1 rpt=new CrystalReport1();
crystalReportViewer1.ReportSource=rpt;

:)
Oct 6 '06 #2
nmsreddi
366 Contributor
hello

after adding crystal report and all those

before creating new object

i.e crystalreport1 crpt= new crystalreport1 ();

you have to go for login procedure other you will get login failure error
Oct 9 '06 #3
lasalgaon
1 New Member
please give the answer
Oct 11 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: thefirstwml | last post by:
I am using Visual Studio.NET 2002 Professional and am attempting to create a report on Crystal Reports for .NET. I know that Crystal Reports can group on anything, and when I add multiple...
3
by: Bob Clegg | last post by:
I am in the same boat as Moondog on the 2nd July. I have a report designed against a dataset. Proved the datasset is OK by dropping a datagrid onto the form and it binds OK to the data. But the...
0
by: David Dvali | last post by:
Hello. I have just started using Microsoft Reporting tools and I like it very much. I'm using Microsoft SQL Server 2005 and Microsoft Visual Studio 2005 for generating reports in my ASP.NET web...
2
by: Rabbit | last post by:
Dear all, This is my first time adding crystal report on my web project. I have added a crystal report(my_report.rpt) under my web project and I have searched Microsoft sample, saying i can use...
3
by: Tyranno.Lex | last post by:
I am using Visual Studio .NET 2003 and have successfully deployed a commercial web application written in C# and ASP.NET. I am now wanting to add reporting using Crystal Reports and am having a...
4
by: Ryan | last post by:
I'm trying to create a report (similar to access) in VB 2005. It appears that Crystal Reports is the recommended method. I created a Crystal Report, set up the data connection (using the Wizard...
5
by: ElTipo | last post by:
Hello People, I made a data base with secure wizard to provide to users a PID and Passwords. I need to extract data from Crystal Reports 7 in this data base but Crystal Reports send me a message...
2
by: ralphred | last post by:
Hello, I am using Crystal Reports XIr2 on XP. I have a report that the user inputs a Product number and it displays all parts and products required to make that part. I am trying to make it so that...
0
by: shwethatj | last post by:
Can anyone please help me..... In Crystal Reports , how to access data using PULL method .. I have got a table in server explorer which has 3 got fields. But i dont know how to access it and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.