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. Visual Basic
  4. how to show dates in crystal report

how to show dates in crystal report

Scheduled Pinned Locked Moved Visual Basic
databasetutorial
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
    magedhv
    wrote on last edited by
    #1

    i have made sql statement this stamene between 2 dates I mean between datepicker 1 and datepicker2 and i use the results to show it in report what i need is how to put this 2 dates in the report to spacify this report between these two dates so that the report will be this is the results from date1 to date2 and the results is 2467,2378,238732 and so on

    S S 2 Replies Last reply
    0
    • M magedhv

      i have made sql statement this stamene between 2 dates I mean between datepicker 1 and datepicker2 and i use the results to show it in report what i need is how to put this 2 dates in the report to spacify this report between these two dates so that the report will be this is the results from date1 to date2 and the results is 2467,2378,238732 and so on

      S Offline
      S Offline
      Salman Sheikh
      wrote on last edited by
      #2

      hi you can create 2 formula field in report and set their values from code like this report.fielddefinition.formulafields(fDateindex).text = "Date (yy, MM, dd)" report.fielddefinition.formulafields(tDateindex).text = "Date (yy, MM, dd)" the other is you can create 2 parameters in report and set their values form code like this report.fielddefinition.parameterfields(fDateindex) = "Date (yy, MM, dd)" report.fielddefinition.parameterfields(tDateindex) = "Date (yy, MM, dd)" best of luck

      Salman Sheikh

      1 Reply Last reply
      0
      • M magedhv

        i have made sql statement this stamene between 2 dates I mean between datepicker 1 and datepicker2 and i use the results to show it in report what i need is how to put this 2 dates in the report to spacify this report between these two dates so that the report will be this is the results from date1 to date2 and the results is 2467,2378,238732 and so on

        S Offline
        S Offline
        Senthil S
        wrote on last edited by
        #3

        Hello, I think u using the datetimepicker from the form means. We will send the datetimepicker's value as argument to the Report. Consider Dim objcrpdetail As New CryReprot objcrpdetail.SummaryInfo.ReportTitle = "'"& DateTimePicker1.value &"' objcrpdetail.SummaryInfo.ReportComments = "'"& DateTimePicker2.value &"' objcrpdetail.SetDataSource(Dset.Tables(0)) CrystalReportViewer1.ReportSource = objcrpdetail Here objcrpdetail is Report name as object instant.Then We passing Crystal Report's ReportTitle as DateTimePicker1.value and ReportComments = DateTimePicker2.value as argument to the report called CryReprot. And iam using Dset for data sending to the report. In the crystal report -> Special Fields -> ReportTitle, ReportComments are available. Click n drag n use it in ur report.. Pls send me ur opinions to me.......

        Senthil S Software Engineer

        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