473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Simple CrystalReport Chart using SQL Query?

Hi All!

I've been searching everywhere for a simple sample of producing a bar graph
using CrystalReport by specifying SQL Query, and I've found none of it! I
find so many complex samples with so many features buried in the sample but
all I want to know is a very simple thing, how to create bar charts with
CrystalReport in VS.NET using SQL Query.

Could anyone provide me a sample showing how to produce a simple bar chart
using SQL Query in CrystalReports?

Say I want this SQL Query:

SELECT Count(AuthorID) FROM Authors GROUP BY AuthorGenre

How do I use CrystalReport in VS.NET to produce a Bar Chart for this query?
The nature of my application is a Web Application (i.e. ASP.NET).

Many Thanks!!!

Don
Nov 18 '05 #1
2 8455
Don:

how familiar are you with crystal? I'm sure there are some samples but I
don't know of any. I can walk you through it, but it'd help if I knew how
familiar you are with it and how you want to connect. For isntance, are you
plannig on hitting the db directly or are you using a WS? And if it's on
the web, what's your authentication type fo SQL Server? Are you using Mixed
mode or are you using Windows and then impersonating? the hardest part is
going to be setting up the data source w/ security and then deploying it.
Assuming you can get the datasource to connect, all you need to do is start
the wizard, then drag the tables you are going to use (table in this case
unless you have other ones for heading info or something else) The wizard
will walk you through all fo this and it's either the second to last tab or
the third to last tab, it will ask you if you want a chart. It's very
similar to Excel. You can specify the Query in the Crystal Designer (or you
can use parameters - again it'd help if I knew your familialirity with it
and how far you've gotten).

I'll see if I can find a demo - I'm sure there's some on
www.crystaldecisions.com but if not, just let me know how much you need help
with ie your familiarity and I'll walk you through it.

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Don Wash" <do*@wash.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
Hi All!

I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I
find so many complex samples with so many features buried in the sample but all I want to know is a very simple thing, how to create bar charts with
CrystalReport in VS.NET using SQL Query.

Could anyone provide me a sample showing how to produce a simple bar chart
using SQL Query in CrystalReports?

Say I want this SQL Query:

SELECT Count(AuthorID) FROM Authors GROUP BY AuthorGenre

How do I use CrystalReport in VS.NET to produce a Bar Chart for this query? The nature of my application is a Web Application (i.e. ASP.NET).

Many Thanks!!!

Don

Nov 18 '05 #2
Hi William,

Thanks for the reply! I'm a beginner to VS.NET and Crystal Reports but I'm a
solid VB6 developer and also know SQL query (T-SQL).

If you could provide me step-by-step on how to define Query in "Crystal
Designer", I'd be very appreciate it!

Don

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
Don:

how familiar are you with crystal? I'm sure there are some samples but I
don't know of any. I can walk you through it, but it'd help if I knew how
familiar you are with it and how you want to connect. For isntance, are you plannig on hitting the db directly or are you using a WS? And if it's on
the web, what's your authentication type fo SQL Server? Are you using Mixed mode or are you using Windows and then impersonating? the hardest part is
going to be setting up the data source w/ security and then deploying it.
Assuming you can get the datasource to connect, all you need to do is start the wizard, then drag the tables you are going to use (table in this case
unless you have other ones for heading info or something else) The wizard
will walk you through all fo this and it's either the second to last tab or the third to last tab, it will ask you if you want a chart. It's very
similar to Excel. You can specify the Query in the Crystal Designer (or you can use parameters - again it'd help if I knew your familialirity with it
and how far you've gotten).

I'll see if I can find a demo - I'm sure there's some on
www.crystaldecisions.com but if not, just let me know how much you need help with ie your familiarity and I'll walk you through it.

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Don Wash" <do*@wash.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
Hi All!

I've been searching everywhere for a simple sample of producing a bar

graph
using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so many features buried in the sample

but
all I want to know is a very simple thing, how to create bar charts with
CrystalReport in VS.NET using SQL Query.

Could anyone provide me a sample showing how to produce a simple bar chart using SQL Query in CrystalReports?

Say I want this SQL Query:

SELECT Count(AuthorID) FROM Authors GROUP BY AuthorGenre

How do I use CrystalReport in VS.NET to produce a Bar Chart for this

query?
The nature of my application is a Web Application (i.e. ASP.NET).

Many Thanks!!!

Don


Nov 18 '05 #3

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

Similar topics

4
by: Andy Davis | last post by:
I have developed a number of reports that are based on parameter queries where the user enters criteria such as a date range and a sales rep say. I want to be able to show a graphical picture in...
3
by: StBond | last post by:
Hi everyone, I am new to Access and Visual Basic so things my be getting across a bit cloudy. I only started using VB for one week. I am having a little problem with the database that I am...
0
by: Tor Inge Rislaa | last post by:
Dynamic SQL in crystalreport Hi, I have designed a report in VB.NET by using the wizard for crystalreport. I have a bit of trouble finding how to make the SQL query dynamic. The report works...
9
by: Patrick.O.Ige | last post by:
I have a code below and its a PIE & BAR CHART. The values now are all static but I want to be able to pull the values from a database. Can you guys give me some ideas to do this? Thanks ...
1
by: Saintor | last post by:
This is for A97 in runtime or MDE mode. My intent was to define a temporary query using the recordsetclone property / filter / orderby. The controlsource of my chart would be based on a grouped...
5
by: devagupt | last post by:
I have a question . I have a Chart which i run from a query. The chart has 3 fields Line , Date , Time in mins. The purpose of the chart is to display the sum of all the "time in mins" in a...
1
by: devagupt | last post by:
i have a form called get downtime data. WHen information is entered into it and the button "get downtime data" pressed , it displays the results of a query. WHen i view the query in pivot chart view...
5
by: BerkshireGuy | last post by:
I have two functions that calculate two numbers based on based in parameters. So, the functions return a value. Is there a way to create a chart based on values from a function? The only...
2
by: Mike Lowery | last post by:
I'm trying to write an ASP.Net app that uses Log Parser 2.2's COM interface to read some Windows Media Server (W3C) log files and generate a chart (GIF file) on the web server. I'm getting an error...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.