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. vb6 with crystal report 8.5

vb6 with crystal report 8.5

Scheduled Pinned Locked Moved Visual Basic
question
4 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.
  • N Offline
    N Offline
    Nine_
    wrote on last edited by
    #1

    Is it possible to sent two parameters to the same field in Crystal Report? I have sent a parameter to a field in the report. Now I want to send the other one to the same field, but it replaces the first one. What I want is to send many parameters to show on the report. Is it possible to do that?

    T 1 Reply Last reply
    0
    • N Nine_

      Is it possible to sent two parameters to the same field in Crystal Report? I have sent a parameter to a field in the report. Now I want to send the other one to the same field, but it replaces the first one. What I want is to send many parameters to show on the report. Is it possible to do that?

      T Offline
      T Offline
      Tirthadip
      wrote on last edited by
      #2

      In the crystal report designer when you are creating a new parameter possibly there is a CheckBox which says "Allow Multiple Values".Did u check that??

      Tirtha Do not go where the path may lead, go instead where there is no path and leave a trail. Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist

      N 1 Reply Last reply
      0
      • T Tirthadip

        In the crystal report designer when you are creating a new parameter possibly there is a CheckBox which says "Allow Multiple Values".Did u check that??

        Tirtha Do not go where the path may lead, go instead where there is no path and leave a trail. Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist

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

        Yes, I already checked it. When I sent the first parameter, I used this code: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("a") Now I want to send the second one with the same code above, it seems to replace the first one like here: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("b") The result is "b" Which I want a b Help me please.............

        D 1 Reply Last reply
        0
        • N Nine_

          Yes, I already checked it. When I sent the first parameter, I used this code: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("a") Now I want to send the second one with the same code above, it seems to replace the first one like here: rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("b") The result is "b" Which I want a b Help me please.............

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          I don't use CR, but it would seem that you have to send the "a" and "b" parameters as an array. I have no idea if this will work or do what you want, but this is what I would try:

          rpt.ParametersFields.GetItemByName("text").AddCurrentValue(New String() {"a", "b"})
          

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          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