Click here to Skip to main content
15,909,039 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi,

I need to prepare a report as shown in below


VIEW REPORT FORMAT


I'm Using sql server 2008 R2 and Crystal Report but i'm a newbie in both

please help me !!!
Posted
Comments
Kenneth Haugland 17-Jul-12 7:49am    
To little information, all we can provide you with is links, and you could find the yourself by searching google
dimpledevani 17-Jul-12 7:50am    
In crystal reports there is an option of making groups, so make a group of department and followed by groups of columns you want.

1 solution

hi i m assuming it is in windows u can do the same way in web also
First create one stored procedure for getting this data
you can write group by query with department and then section and then take count of employees according to their hierarchy.
follow this given step:

SQL
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm



and instead of table try to add your stored procedure for crystal report source

or try this with dataset
Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report[^]
 
Share this answer
 
Comments
Jackson K T 17-Jul-12 8:20am    
I Think I need to explain my question more clearly

This report is Showing minimum number of staffs for each designation in a Department

i used PIVOT query to get the result .It's works fine but my problem is some sections are managed by single manager .So it should be displayed as shown in my example

in my example Jeans,Suitings and kids sections are managed by a single manager so i need to merge that cells like in the image
MAU787 17-Jul-12 8:57am    
u said
i'm a newbie in both
that's why i was explaining the crystal reports with stored procedure
when u'll put design on crystal report there are many options for displaying data(like calculation,formulas etc) and try to explore group section also
just explore those and try to get it.maybe u'll find the option.

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