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