Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4586790
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:41:18+00:00 2026-05-21T21:41:18+00:00

I am working in c#.I want to create crystal reports which need a pie

  • 0

I am working in c#.I want to create crystal reports which need a pie chart to show on that report.
So can u just tell me (procedure or any example or any link )that how to insert a graph to a crystal report.

eg. suppose there r some courses and their particular batches. Batches have their particular no of students.
Show a pie chart based on batches with no of students of a particular course.
given that all the values are from the same table.

On btn_click()

{   
            SqlConnection cnn;
            string connectionString = null;
            string sql = null;
            connectionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=EMS;User ID,password=";

            cnn = new SqlConnection(connectionString);
            cnn.Open();
            sql = "query";

            SqlDataAdapter dscmd = new SqlDataAdapter(sql, cnn);
            DataSet1 ds = new DataSet1();
            dscmd.Fill(ds, "names");
            cnn.Close();
            CrystalReport1 objRpt = new CrystalReport1();
            objRpt.SetDataSource(ds.Tables[1]);
            CrystalReportViewer1.ReportSource = objRpt;
            CrystalReportViewer1.RefreshReport();    
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:41:19+00:00Added an answer on May 21, 2026 at 9:41 pm

    Right Click in blank area of Report Designer and then Insert and then click Chart option.
    In the Type tab and from chart type list select Pie Option or any another type of Chart.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on the Visual studio 2010. want to create a dll which
I am working powerpoint 2007 and I want to create an add-in which has
For the fun, I want to create a ( working ) executable that doesn't
I'm trying to create a Crystal Report that reads data from an access table.
For an application that I am working on I want to create a custom
I want create timer in my program so that I can cause it to
I'm working on a collection class that I want to create an __eq__ method
I want to create an index page for which I need the page number
I'm working on a client-side Java application for which I want to create a
I want to create an alias that will print out the current working directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.