473,563 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal reports repeating the items when i am using the query with dataset

1 New Member
I am new to crystal report. At the time of binding the datas from dataset the crystal report showing twice or thrice.

i checked in dataset also at the time of debugging but in dataset only i am having 5 records but in my crystal its showing 10 records.

Below is my Code:

Expand|Select|Wrap|Line Numbers
  1.  ReportDocument doc = new ReportDocument();
  2.  
  3.  sda = new SqlDataAdapter(" SELECT ac_mstr.AC_DESC, TRAN_HDR.DOC_DT, TRAN_DTLS.GL_CODE, DBCR, AMT FROM dbo.TRAN_DTLS TRAN_DTLS INNER JOIN dbo.AC_MSTR ac_mstr ON (TRAN_DTLS.SUB_CODE=ac_mstr.SUB_CODE) AND (TRAN_DTLS.GL_CODE=ac_mstr.GL_CODE) INNER JOIN dbo.TRAN_HDR TRAN_HDR ON (TRAN_DTLS.TC=TRAN_HDR.TC) AND (TRAN_DTLS.DOC_NO=TRAN_HDR.DOC_NO) where tran_hdr.tc='CAS' and tran_hdr.doc_dt between '2012/01/01' and '2012/12/30'   ORDER BY TRAN_DTLS.GL_CODE", con);
  4.  
  5.             sda.Fill(ds);                    doc.Load(Server.MapPath("~/Reports/Acc_sum.rpt"));
  6.  
  7.    doc.SetDataSource(ds.Tables[0]);
  8.    CrystalReportViewer1.ReportSource = doc;
Can any one help Me?
Sep 29 '12 #1
0 1475

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

Similar topics

1
2772
by: JK | last post by:
In my win form, I'm trying to display a Crystal report with the data in my dataset only but, if I follow the steps in this msdn page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crtsksettingupanado.netreportinaviewer.asp it always displays all the data regardless of the Select statement I run. Here's my...
0
1071
by: malcolm | last post by:
Crystal Reports doesn't seem to allow me to use enums (that have integer values) in any crystal expressions. I know this goes kind of against what they are trying to achieve, but this has been a major stumbling block for me and I think if they truely want to integrate with .NET they should somehow implement this. -dave
0
1049
by: Michelle Stone | last post by:
In the crystal reporter.net designer I tried to add a dataset to the "DATABASE FIELDS" node of the Field Explorer tree. I get the following Messagebox: Logon Failed Details: Object reference not set to an instance of a object The message box title is "Crystal Reports ActiveX Designer"
3
2974
by: Tim_Mac | last post by:
hi, see quote below from http://groups.google.ie/groups?hl=en&lr=&th=36c5d2df211a4d78&seekm=00480961-660F-462D-BBD4-455C8DA26C38%40microsoft.com&frame=off According to the book: "Deploying .NET Applications Lifecycle Guide" published in Microsoft Press: "Web setup projects allow you to specify which port to install the application on,...
1
2302
by: Peri | last post by:
Dear All, Can any one help me out to call a crystal reports designed in 8.0 version in ASP.NET ? Crystal reports has given an asp page called rptserver.asp from which we can call the crystal reports in ASP and it is working fine in ASP. After converting this to ASP.NET it is not working. I am getting an error "CRAXDRT Error Occured on...
1
7707
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some suggestions for me: I'm trying to either print or export some Crystal Reports in asp.net web application. The reports were made with CR 9.0, get...
0
366
by: Moondog | last post by:
Here's my VB.NET code: Dim RV As New frmReportViewer 'This is the form containing the 'Crystal Report Viewer Dim Rep As New DetailsReport 'DetailsReport is the name of my 'report. It is already imported 'into my project Rep.SetDataSource(myDataset) 'myDataset is correct and has the
1
2752
by: Aaron | last post by:
Hi, I am using VS 2003 and have some Crystal reports questions. 1. I am trying to do a shipper document. How do I setup so that no two groups will share a page, each group may span 1 or many pages. Or maybe a better way of stating the question is "how do I make a group header a page header?"
1
1018
by: Pooja Jain | last post by:
Hi, I am new to asp.net and dont have much experience about it. I have to use crystal reports for extracting particular data from database so can you please help me from where should i start or forward me some useful links related to it... Please reply as soon as possible...
0
1507
by: marcellus7 | last post by:
Hows it going everyone. Im pretty new to Crystal Reports, and am in the process of trying to setup my first Crystal Report in my windows app. I am loading data from a DataSet, and am finally getting all the data loaded correctly, but the problem is it just keeps repeating the details section. I have 5 sub reports, each with their own table of data...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.