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. How can I get selected value from crystal report

How can I get selected value from crystal report

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestion
6 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.
  • A Offline
    A Offline
    Ali 110
    wrote on last edited by
    #1

    Hello Friends, I have a requirement of my application to know whenever a user select a value on crystal report & getting the selected value from crystal report view to my .net application and using that value set datasource to sub report. Kindly help me how can I get the selected value from crystal report view to my application. Thanks in advance Regards

    T D 2 Replies Last reply
    0
    • A Ali 110

      Hello Friends, I have a requirement of my application to know whenever a user select a value on crystal report & getting the selected value from crystal report view to my .net application and using that value set datasource to sub report. Kindly help me how can I get the selected value from crystal report view to my application. Thanks in advance Regards

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      Do NOT cross post please. Doing so will not lead to faster answers or better ones, it will only lead to the people here refusing to answer because of it. As to your question, I don't think you can get the selected text out of crystal reports. You might try (don't know how you can do it or if its even possible) to write some code in your report that save's the selected text to a parameter, and then get that parameter out of the report.

      1 Reply Last reply
      0
      • A Ali 110

        Hello Friends, I have a requirement of my application to know whenever a user select a value on crystal report & getting the selected value from crystal report view to my .net application and using that value set datasource to sub report. Kindly help me how can I get the selected value from crystal report view to my application. Thanks in advance Regards

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        You might be able to invoke a webservice using a Hyperlink in your Crystal report that would pass the appropriate value to the webservice. Sounds a bit complicated, but it might work. Rather than use your original approach, why does your application need to set the datasource for the sub-report ? I've created Crystal reports that have drill down capabilities where links would initiate a sub-report. You may want to reconsider how your are proposing to implement your solution; there may be an easier way. :-)

        A 1 Reply Last reply
        0
        • D David Mujica

          You might be able to invoke a webservice using a Hyperlink in your Crystal report that would pass the appropriate value to the webservice. Sounds a bit complicated, but it might work. Rather than use your original approach, why does your application need to set the datasource for the sub-report ? I've created Crystal reports that have drill down capabilities where links would initiate a sub-report. You may want to reconsider how your are proposing to implement your solution; there may be an easier way. :-)

          A Offline
          A Offline
          Ali 110
          wrote on last edited by
          #4

          Hi David, Thanks for your reply. Your second suggestion sounds better and I worked on it i.e On-demand subreport. The problems which I am facing in using on-demand sub report are following : 1) On which event should I set datasource for on-demands sub report. 2) How can I get the value from main report against which I filter datasource for on-demand subreport. As you said that you've worked on such report might be you give me a solution for my problems. Regards Ali Raza

          D 1 Reply Last reply
          0
          • A Ali 110

            Hi David, Thanks for your reply. Your second suggestion sounds better and I worked on it i.e On-demand subreport. The problems which I am facing in using on-demand sub report are following : 1) On which event should I set datasource for on-demands sub report. 2) How can I get the value from main report against which I filter datasource for on-demand subreport. As you said that you've worked on such report might be you give me a solution for my problems. Regards Ali Raza

            D Offline
            D Offline
            David Mujica
            wrote on last edited by
            #5

            My reports were easier to create because I made a direct ODBC connection to the database with Crystal. I'm not sure how you would do it with datasets.

            A 1 Reply Last reply
            0
            • D David Mujica

              My reports were easier to create because I made a direct ODBC connection to the database with Crystal. I'm not sure how you would do it with datasets.

              A Offline
              A Offline
              Ali 110
              wrote on last edited by
              #6

              I m setting dataset to main report using PUSH methods. Same way I want to set datasource to on-demand sub report at runtime on the basis of value from main report Regards

              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