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 Formula needed

Crystal Report Formula needed

Scheduled Pinned Locked Moved C#
3 Posts 2 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.
  • N Offline
    N Offline
    Nikhil Bhivgade
    wrote on last edited by
    #1

    i am having a like this Name -Nikhil Bhivgade Class-6th ------------------------------------- 1 English 100 50 Pass 2 Maths 100 50 Pass 3 Science 100 20 Fail 4 History 100 20 Fail -------------------------------------- in report footer i want to display failed subject Sr.No and Name you Failed in 3.Science,4.History

    S 1 Reply Last reply
    0
    • N Nikhil Bhivgade

      i am having a like this Name -Nikhil Bhivgade Class-6th ------------------------------------- 1 English 100 50 Pass 2 Maths 100 50 Pass 3 Science 100 20 Fail 4 History 100 20 Fail -------------------------------------- in report footer i want to display failed subject Sr.No and Name you Failed in 3.Science,4.History

      S Offline
      S Offline
      Sivaraman Dhamodharan
      wrote on last edited by
      #2

      Use a global variable. Global variable is visible for all the sections of the report. String Append Sr.No and Name of the subject based the status pass or fail. The formula can be: FormulaA : [Used in the PageHeader][Display of Formula Suppressed] Global stringvar FailedDetails; FailedDetails = ""; FormulaB: [Used in Detail Section][Display of Formula Suppressed] Global stringvar FailedDetails; WhileReadingRecords; if (status = "fail") FailedDetails = FailedDetails + SrNo + " " + Subject FormulaC: [Used in Footer Section] [Display of Formula Not Sppressed] Global stringvar FailedDetails; FailedDetails; For more information: Search in google with the keyword - "WhileReadingRecords" and "WhilePrintingRecords" The above formula do not work by copy paste. You need to make some adjustment based on the Syntax. Hope it Helps :)

      N 1 Reply Last reply
      0
      • S Sivaraman Dhamodharan

        Use a global variable. Global variable is visible for all the sections of the report. String Append Sr.No and Name of the subject based the status pass or fail. The formula can be: FormulaA : [Used in the PageHeader][Display of Formula Suppressed] Global stringvar FailedDetails; FailedDetails = ""; FormulaB: [Used in Detail Section][Display of Formula Suppressed] Global stringvar FailedDetails; WhileReadingRecords; if (status = "fail") FailedDetails = FailedDetails + SrNo + " " + Subject FormulaC: [Used in Footer Section] [Display of Formula Not Sppressed] Global stringvar FailedDetails; FailedDetails; For more information: Search in google with the keyword - "WhileReadingRecords" and "WhilePrintingRecords" The above formula do not work by copy paste. You need to make some adjustment based on the Syntax. Hope it Helps :)

        N Offline
        N Offline
        Nikhil Bhivgade
        wrote on last edited by
        #3

        It is returning me false any suggestion

        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