Click here to Skip to main content
15,917,060 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Every One,

I am making an asp.net application. In which i want to show records in report. I have four columns Employee, Project, Date, Module. I want to make such a report in which if user select Employee then report should show employee wise or if user select project then report should be display project wise. Still i have to make different four Crystal Reports which shows according to filters. But I want that is their any GUI control or Functionality in which if user selects Employee Column in report Then report is convert according to employee wise. same for project and any others.


If anyone have any idea or any solution or any article then give me.

please help me.
Posted

1 solution

This reminds me of a similar thing that I did for a customer.

I had to dynamically change the sequence of the columns in the report based on users UI selection. I succesfully achieved it using
SQL
PARAMETERS.


Behind every UI selection I was setting parameters in the report. There wasnt any direct field dropped on the report. Instead I placed parameters as columns and passed values to those from my code.

Because in crystal unless you have sections you cant do much about sorting columns.
----------------
Yet another way is to pass an
SQL
order by
clause to the SQL query based on the users UI selection. This also makes sense and creates the query before hand. So behind every control you have place a sort on that particular field sql.

Hope it gives you some direction.
 
Share this answer
 
Comments
coolnavjot31 7-Jul-12 0:28am    
hello ShaikhM,

Thanks for your reply. I am trying to solve my problem and your reply is also helpful.

But If anyone have any idea or any other solution for this
please help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900