473,671 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Report from DataSet or Stored Procedure with Params

I have been trying for over a week to get data from my stored procedure into
a Crystal Report in VS.NET 2003 with no luck. I have all sorts of code parts
but nothing that tell me how then go together. I have two Crystal.NET and
two ASP.NET books. None give a complete example. This is just crazy! The
GUI approach does not seem to work with stored procedures that have
parameters. Or maybe it's this damn SQL2004 beta. Anyway, all I want to do
is get data from my SQL server stored procedure onto a VS.NET crystal report.
It looks like doing it manual is my only option. I must use C#. Does
anyone have a good example of doing this? Please!!! I can't afford any more
books. Not that they would help. I just need one good example.

Thank you so much!

Craig
Nov 16 '05 #1
2 8427
GG
I have never used it but I came accross to this
http://www.codeproject.com/aspnet/crystal_report.asp
Where may be you can call the store proc to populate a dataset and then
feed the ds to crystal.

Hope it helps

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #2
Thanks, I have not seen this article. I will give it a try tomorrow. Things
that complicate this are that I am using a SQL stored procedure with
parameters. I sure hope this helps. I'm about ready to give up. I do seem
to be capable of building a dataset, but when trying to bind it to the report
I get a logon erro.

Craig

"GG" wrote:
I have never used it but I came accross to this
http://www.codeproject.com/aspnet/crystal_report.asp
Where may be you can call the store proc to populate a dataset and then
feed the ds to crystal.

Hope it helps

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1253
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000. Throughout the project I'm working on, I often find I need a temporary table displayed in a report, something that I cannot seem to do. Since temporary tables are so useful, I cannot imagine Crystal Reports wouldn't have a way to get such
4
4642
by: Andrew | last post by:
Hey all, Been working with the Crystal Report Viewer, and have run into a situation I am hoping someone can help me get past. This may be more of a CR question, but hoping for some CR gurus to stop by in here. Crystal's knowledgebase has made available a bunch of examples for both ASP.Net and VB.Net applications for download and review (I added the links at the end of this post). One of the examples is how to pass in a parameter to...
3
5236
by: Diggler | last post by:
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop through the objects and add the rows one at a time. I then push the dataset to the Crystal Report. The report worked fine, until this morning. I added another field or two to the dataset, and rearranged the report fields to organize the report...
0
1282
by: Vadim Vulfov | last post by:
My task was to create Crystal Report on ASP.NET page to display different date depending on to textboxes From Date and To Date. I created stored procedure in SQL with two parameters from_date and to_date. I created dataset object in ASP.NET (drag and drop on it the stored procedure I just created) and save as XSD file. In the Crystal Report selected all the fields and included into the
12
10397
by: Bill Nguyen | last post by:
What's the VB syntax to run the CR report using the following SP? I use CrystalreportViewer and ReportDocument. Thanks Bill Here's the SP in SQLserver 2K: CREATE proc mysp_ReportSubmission @salesdate as varchar(20),
1
4246
by: Soren S. Jorgensen | last post by:
Hi, I've got a Crystal Report that gets some data from a stored procedure and I need to set some params of the proc at runtime. But no matter what I do, I cannot get the report to eat the params - it keeps showing an error that the proc needs to have it's params initialized. Code's something like: ConnectionInfo ci = new ConnectionInfo();
2
2324
by: Charlie Brown | last post by:
The following code is what I have been using in .net 1.1 for years. Now upgrading to .net2.0 and Crystal reports for vs2005, it no longer works, although as far as i can tell it is still supported. The error I receive tells me that I did not provide @Location parameter with a value. Also to note is the database changes at runtime. 'This report uses the PULL method. Dim crtableLogoninfos As New TableLogOnInfos Dim crtableLogoninfo As...
7
6703
by: Jlo | last post by:
Hi, I have a c# winforms application. When I call the report file, it shows me all the records in the table. How can I make it to call only a particular range. i have the following code Viewer1.ReportSource = Application.StartupPath + "//Label.rpt"; How can I assign it a dataset which have the data of a particular range.
1
2102
by: Brad Pears | last post by:
I have a vb.net 2005 project and have a Crystal report I have designed (using the built-in Crystal reports that came with .net 2005). The fields in my report are based on a stored procedure. I have now added a field to the database and have modifed the stored procedure to include this new field. However, when I go to my report and attempt to modify it to add this new field, the new field is not showing up in the list at all. It appears the...
0
8476
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8914
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8598
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7433
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
6223
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
4224
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
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
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
2051
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.