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 in c#.net

crystal report in c#.net

Scheduled Pinned Locked Moved C#
csharpdatabasetutorialquestion
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
    Milind Panchal
    wrote on last edited by
    #1

    I am developing one window application. In which I am using crystal report. I want to pass sql query to crystal report programatically from C#.net. For example: "select * foms staffmaster where id=78" So how can I create report. Thanks in advance!

    A N 2 Replies Last reply
    0
    • M Milind Panchal

      I am developing one window application. In which I am using crystal report. I want to pass sql query to crystal report programatically from C#.net. For example: "select * foms staffmaster where id=78" So how can I create report. Thanks in advance!

      A Offline
      A Offline
      Abdul Rahman Hamidy
      wrote on last edited by
      #2

      retrive data in datatable and then simply pass datatable to your report paramater as myReport.SetDataSource(mydataTable);

      Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

      1 Reply Last reply
      0
      • M Milind Panchal

        I am developing one window application. In which I am using crystal report. I want to pass sql query to crystal report programatically from C#.net. For example: "select * foms staffmaster where id=78" So how can I create report. Thanks in advance!

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

        is that really what you want to do? i create the database and all the required store procedures in sql server, only then i begin to build c# application i don´t do any sql in c#, i just trigger a sql SP i want by triggering an event like button click so, i have a DataGridView to show datatable and i trigger refresh, add, delete, edit row SP procedures for exemple to make changes i have also crystal reports viewer, but here you will have to built a scheme that is a 100% match your datatable scheme in order to work, DGV doesn´t need that, it "loads" anything regardless the datadable scheme

        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