472,801 Members | 1,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,801 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 8398
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

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.