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. problem in crystal report

problem in crystal report

Scheduled Pinned Locked Moved C#
tutorialhelpquestion
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.
  • S Offline
    S Offline
    Shuaib wasif khan
    wrote on last edited by
    #1

    how do i get opening balance from previous day closing balance. here is the example date 14/2/2013 closingbalance 2000 date 15/2/2013 opening balance 2000 credit 2000 debit 500 date 15/2/2013 closingbalance 3500 date 16/2/2013 opening balance 3500 and so on here previous closing balance become opening balance. problem is that i have to show data between date and no idea how to get opening balance of first record. i am using sqlser 2005 and crystal report 10.

    M J 2 Replies Last reply
    0
    • S Shuaib wasif khan

      how do i get opening balance from previous day closing balance. here is the example date 14/2/2013 closingbalance 2000 date 15/2/2013 opening balance 2000 credit 2000 debit 500 date 15/2/2013 closingbalance 3500 date 16/2/2013 opening balance 3500 and so on here previous closing balance become opening balance. problem is that i have to show data between date and no idea how to get opening balance of first record. i am using sqlser 2005 and crystal report 10.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      This is not a report problem, it is a SQL issue. You must create the query that produces the results for the report to display. So one of the columns in your result set needs to be opening balance

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S Shuaib wasif khan

        how do i get opening balance from previous day closing balance. here is the example date 14/2/2013 closingbalance 2000 date 15/2/2013 opening balance 2000 credit 2000 debit 500 date 15/2/2013 closingbalance 3500 date 16/2/2013 opening balance 3500 and so on here previous closing balance become opening balance. problem is that i have to show data between date and no idea how to get opening balance of first record. i am using sqlser 2005 and crystal report 10.

        J Offline
        J Offline
        John D Sanders
        wrote on last edited by
        #3

        One of the things that I have done is create a XSD for the report and pass the data to the report from your code so that you can do whatever manipulation you want prior to handing it to crystal. report.DataSource = (object with same schema as the XSD)

        Thanks JD http://www.seitmc.com/seitmcWP

        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