473,499 Members | 1,562 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 1463

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

Similar topics

1
2763
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: ...
0
1066
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...
0
1038
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...
3
2968
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...
1
2296
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...
1
7679
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...
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...
1
2743
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...
1
1017
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...
0
1500
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...
0
7134
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
7012
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...
0
7180
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
7225
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...
0
7392
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
5479
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,...
1
4920
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...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
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...

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.