Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Crystal report data

Crystal report data

Scheduled Pinned Locked Moved C#
databasehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maddie from Dartford
    wrote on last edited by
    #1

    Hi, I want to display some data in crystal report but I am very new to Crystal Reports. I want to display some data which is not directly available in database but i have to cook from database. Where can i write all logic or queries to get correct data? To explain in detail: let say we i have a column "colA" in data base which has the data 1.0, 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, 2.3.. etc. I want to display data in column of report as Row1: MeanOf(1.0, 1.1, 1.2,1.3) Row2: MeanOf(2.0, 2.1, 2.2, 2.3) . . I am using Table Adapter and Data table. I don't know where to store the intermediate dataset and further write the logic for cooking the required data? I ll be greatly thankful for any kind of help.

    M N 2 Replies Last reply
    0
    • M Maddie from Dartford

      Hi, I want to display some data in crystal report but I am very new to Crystal Reports. I want to display some data which is not directly available in database but i have to cook from database. Where can i write all logic or queries to get correct data? To explain in detail: let say we i have a column "colA" in data base which has the data 1.0, 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, 2.3.. etc. I want to display data in column of report as Row1: MeanOf(1.0, 1.1, 1.2,1.3) Row2: MeanOf(2.0, 2.1, 2.2, 2.3) . . I am using Table Adapter and Data table. I don't know where to store the intermediate dataset and further write the logic for cooking the required data? I ll be greatly thankful for any kind of help.

      M Offline
      M Offline
      Muhammad Shahid Farooq
      wrote on last edited by
      #2

      Make formula field then show this field in detail section.

      1 Reply Last reply
      0
      • M Maddie from Dartford

        Hi, I want to display some data in crystal report but I am very new to Crystal Reports. I want to display some data which is not directly available in database but i have to cook from database. Where can i write all logic or queries to get correct data? To explain in detail: let say we i have a column "colA" in data base which has the data 1.0, 1.1, 1.2, 1.3, 2.0, 2.1, 2.2, 2.3.. etc. I want to display data in column of report as Row1: MeanOf(1.0, 1.1, 1.2,1.3) Row2: MeanOf(2.0, 2.1, 2.2, 2.3) . . I am using Table Adapter and Data table. I don't know where to store the intermediate dataset and further write the logic for cooking the required data? I ll be greatly thankful for any kind of help.

        N Offline
        N Offline
        nelsonpaixao
        wrote on last edited by
        #3

        Hi, i really dont understand what you are asking but i assume that you want to display data (varchar,int,image,etc) from the database to crystal reports, right? OK. - Add a report and a dataset to your solution - design the dataset to fit 100% the store_procedure you are triggering, meaning if you have "select first_name 'FN',last_name 'LN' ..." them datatable fields as to be named FN and LN, and have same type!!! - select the dataset as your datasource, and them drag fields to the report - after that is easy, keep doing like it was a datagridview

        // DataGridView Report
        DataGridView_Report.DataSource = dt;
        // Crystal Report
        CrystalReport_ConstructorStandings rpt = new CrystalReport_ConstructorStandings();
        rpt.SetDataSource(dt);
        CrystalReportViewer_Report.ReportSource = rpt;

        Only beware of the image formats that are not allowed in crystal reports (Can´t help you more, but, if you want to ask something related to this go my profile) :doh:

        nelsonpaixao@yahoo.com.br trying to help & get help

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups