473,796 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help on Crystal Reports

97 New Member
hi there, I have a windows based program in visual studio 2005 using C# and sql server 2005 as backend.

It's the first time I am trying to use Crystal reports, from what I have now is simply a table from the database and the crystal report viewer displays the entire table. I'ved been searching to see where I can enter a select statement that will allow me to decide which data I get on the report. So far I've read about Select Expert that's found in design view of the crystal reports in reports but I don't find anything like it. I'm also thinking maybe when creating the report there's somewhere where I can select or query specific data. If anyone would like to shed some light on this matter I'll appreciate it a lot.

--GM
Jun 24 '08 #1
5 1181
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
the select expert is where you can specify what to see and filter your data there.

If you are quering on how to do this programatically , what i use is parameters.

Add Parameters in your report and then edit select expert to the values of the parameters.

When creating a report in .Net you can specify the parameters you are sending (which wil have to match that of the report)
Jun 25 '08 #2
gggram2000
97 New Member
the select expert is where you can specify what to see and filter your data there.

If you are quering on how to do this programatically , what i use is parameters.

Add Parameters in your report and then edit select expert to the values of the parameters.

When creating a report in .Net you can specify the parameters you are sending (which wil have to match that of the report)
Yeah but I can't find any Select expert, there's no property to enable it...where can I find it?
Jun 25 '08 #3
gggram2000
97 New Member
Hey, I've tried creating a dataset so that the report displays a certain data that i query. My code looks like this:

Expand|Select|Wrap|Line Numbers
  1. // getting the dataset
  2.                 string connString = System.Configuration.ConfigurationSettings.AppSettings.Get("ConnectionString");
  3.                 string query = "Select * from SaleReceipts";                           
  4.                 conn = new OleDbConnection(connString);
  5.                 conn.Open();
  6.                 da = new OleDbDataAdapter(query, conn);                                
  7.                 ds = new DataSet();
  8.                 da.Fill(ds,"SaleReceipts");    
  9.  
  10.                 // Crystal report code
  11.                 Report1 rpt1 = new Report1();                
  12.                 rpt1.SetDataSource(ds);                 
  13.                 crystalReportViewer1.ReportSource = rpt1;     
  14.  
My problem is that when the report displays it only displays the first row instead of all (*). Is there anything wrong with this code?
Jun 27 '08 #4
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
have you tried opening up crystal reports and vieing the report there?

check the report menu in the toolbar and it should have a select option.

As of what i have seen, that menu appears atleast from 9.0 onwards
Jun 29 '08 #5
gggram2000
97 New Member
have you tried opening up crystal reports and vieing the report there?

check the report menu in the toolbar and it should have a select option.

As of what i have seen, that menu appears atleast from 9.0 onwards
Thanks for the help. I finally feel comfortable with crystalreports. I searched a tutorial where it explains about the pull and push method, basically I needed a push method for my report since I was querying specific data to display. I think if I was told about those methods from the beginning I wouldn't have had any problems with crystal reports.

--GM
Jun 30 '08 #6

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

Similar topics

3
6917
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
0
1334
by: SWu | last post by:
Hi all Could someone please tell me how to configure and deploy my Crystal reports? Any help would be greatly appreciated. I want to be able to deploy my reports/web pages to another domain, web server, database and have the report connect via integrated security. 1. I have created a stored proc in my SQL Server db, created a report in my ASP.NET project, created a reports.aspx and placed a CrystalReportViewer on the page. This is...
7
8755
by: mrwoopey | last post by:
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail to render the page" I can view the reports with within Crystal Reports. The same issue was posted here with no solution:
7
4430
by: John | last post by:
I am using Crystal Reports in my application I made using Visual Studio.NET. I installed my application on the client machine, with all the DLLs required(added the merge modules), the engine and the rest. When I start my application and, from it, try to open up a report I get an exception "Query engine error: C:\WINDOWS\Temp\temp_*******.rpt" with some wierd numbers instead of *******. Can anyone tell me what the problem is here and how to...
6
5000
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
3
8924
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data from sql server) and I was wondering whish of these is the better tool .. We're still not sure if they'll be loaded from an existing VB6 application or if I'll have to make a separate module for them (in .Net). In general, which is the better tool?...
3
15062
by: Mudcat | last post by:
I am not that familiar with Crystal Reports, but having read some other posts I know that the way to integrate the API with Python is through the COM interface provide by win32all. However, I have been unable to find any other information on how to get started. I've used the COM interface before in integrating Excel and a couple of other things. So I am familiar with how that works. But there are at least 40 options dealing with Crystal...
3
3827
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a dataset and link it to a reportviewer than any Crystal Report book will do. I use vb.net but im assuming most books would show you vb and c
1
8147
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings file and itself into the exe. You would probably want a tool for this bit which could be in the zip too. So the app isnt single exe when running but when not running, it is. Just an idea for you to think about. Another option would possibly be to...
0
1353
by: akshaycjoshi | last post by:
Most of you people are already familier with the working of crystal reports unlike me.I am working on an application when I have no other option but to use CR. It is very diff. for me to read an entire book on CR for a simple report, so I thought if you people can help me :) Here is the table structure. http://img26.imageshack.us/img26/295/crystalpz9.png I opened the crystal reports in VS 2005 and added the crystal report and using the...
0
9528
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9052
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7547
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
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
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.