If that isn't useful then you can pass a filter/where clause to the report.
mlmcc
Main Topics
Browse All TopicsPlease can somebody advise me the best way of doing the following:
In my intranet application i have a crystal report that would normally accept sql parameters.
I now have a form that enables the users to build a sql string that is stored in the database in a users saved queries table.
is there any way which i can use the sql string to create my report .The returned columns are always the same but the query criteria isn't. I am no expert so as much explanation as possible would be appreciated as would responses using c#. Many Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I was unable to apply the above suggestions to my problem. I have managed to populate the report with
the data i need to by creating a dataset on the fly. The only problem is if i try to print the report or move to the next page the report viewer is prompting the user for security credentials for the database.
I have attached the code behind for my print report button.
Business Accounts
Answer for Membership
by: mlmccPosted on 2009-10-15 at 15:47:44ID: 25585649
If the SQL Select is always the same then this method should work
ries/Artic les/2006/0 9/Feeding- Crystal-Re ports-from -your-appl ication.as px
http://www.emoreau.com/Ent
mlmcc