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. how can i make parameter that take a period of months as a parameter in c# crystal reports

how can i make parameter that take a period of months as a parameter in c# crystal reports

Scheduled Pinned Locked Moved C#
csharpvisual-studiotutorialquestion
7 Posts 3 Posters 1 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.
  • U Offline
    U Offline
    User3490
    wrote on last edited by
    #1

    i want to make a crystal report that it takes as a parameter for example, the user choose 3 months. the user can choose more that one months.. How can i put something that the user can choose a range of months in parameters of crystal report in visual studio 2010( i use c# for my whole project) thanks

    OriginalGriffO 1 Reply Last reply
    0
    • U User3490

      i want to make a crystal report that it takes as a parameter for example, the user choose 3 months. the user can choose more that one months.. How can i put something that the user can choose a range of months in parameters of crystal report in visual studio 2010( i use c# for my whole project) thanks

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously. Now, edit your question, and try again in a civilised manner.

      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      U 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously. Now, edit your question, and try again in a civilised manner.

        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

        U Offline
        U Offline
        User3490
        wrote on last edited by
        #3

        i am sorry i didn't know the meaning of writing capital letters ..

        OriginalGriffO 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously. Now, edit your question, and try again in a civilised manner.

          The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

          U Offline
          U Offline
          User3490
          wrote on last edited by
          #4

          i am sorry i didn't know the meaning to writing capital letters

          1 Reply Last reply
          0
          • U User3490

            i am sorry i didn't know the meaning of writing capital letters ..

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            See here: Wiki: Netiquette[^]

            The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            U 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              See here: Wiki: Netiquette[^]

              The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

              U Offline
              U Offline
              User3490
              wrote on last edited by
              #6

              i want to make a crystal report that it takes as a parameter for example, the user choose 3 months. the user can choose more that one months.. How can i put something that the user can choose a range of months in parameters of crystal report in visual studio 2010( i use c# for my whole project) thanks

              J 1 Reply Last reply
              0
              • U User3490

                i want to make a crystal report that it takes as a parameter for example, the user choose 3 months. the user can choose more that one months.. How can i put something that the user can choose a range of months in parameters of crystal report in visual studio 2010( i use c# for my whole project) thanks

                J Offline
                J Offline
                JesperMadsen123
                wrote on last edited by
                #7

                One options would be to allow setting a "from/start" date, and a number of months as a regular integer parameter, e.g. from a textfield or combo box. Then in your C# code create a date range as: public DateTime CalculateEndDateOfRange(DateTime startdate, uint months) { DateTime endtime = startdate.AddMonths(months); return endtime; } Check as similar question here... http://stackoverflow.com/questions/4454271/date-range-in-days-c[^]

                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