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. Any Problem with this code?

Any Problem with this code?

Scheduled Pinned Locked Moved Visual Basic
helpquestion
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.
  • D Offline
    D Offline
    Dambod
    wrote on last edited by
    #1

    I am trying to insert multiple records on crystal report 10 using the following codes. I have multiple columns, too. But the following code displays only the first record in the dataset. when i put the last two lines before the word "next" it displays only the last record. Can any one fix it or give me some suggestions? I thank any efforts made to solve this problem NB: param3 is the parameter field that is found on crystal report For c.rowIndex = 0 To c.ds.Tables("studreport").Rows.Count - 1 discvalue = New ParameterDiscreteValue discvalue.Value = c.custView(c.rowIndex)("coursename") param3.CurrentValues.Add(discvalue) paramfields.Add(param3) Next

    _ 1 Reply Last reply
    0
    • D Dambod

      I am trying to insert multiple records on crystal report 10 using the following codes. I have multiple columns, too. But the following code displays only the first record in the dataset. when i put the last two lines before the word "next" it displays only the last record. Can any one fix it or give me some suggestions? I thank any efforts made to solve this problem NB: param3 is the parameter field that is found on crystal report For c.rowIndex = 0 To c.ds.Tables("studreport").Rows.Count - 1 discvalue = New ParameterDiscreteValue discvalue.Value = c.custView(c.rowIndex)("coursename") param3.CurrentValues.Add(discvalue) paramfields.Add(param3) Next

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Normally you set your crystal report up and throw a query/stored procedure/dataset at it and it does the rest... why are you using this code?

      I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

      D 1 Reply Last reply
      0
      • _ _Damian S_

        Normally you set your crystal report up and throw a query/stored procedure/dataset at it and it does the rest... why are you using this code?

        I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

        D Offline
        D Offline
        Dambod
        wrote on last edited by
        #3

        i used this code because the final data to be displayed on crystal report depends on user data input. everytime user input changes the report data changes.

        D 1 Reply Last reply
        0
        • D Dambod

          i used this code because the final data to be displayed on crystal report depends on user data input. everytime user input changes the report data changes.

          D Offline
          D Offline
          darkelv
          wrote on last edited by
          #4

          Parameters generally used as a selection or displaying some information ie user name, department. They are not meant for passing in the report data itself. The Crystal Report should take the data from data sources like dataset, object collections, or directly from the database itself, not by passing in as parameters one by one.

          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