It sounds like you are new to CR and need a complete training course on it. I have my ebooks online that show you all this. But if you want the free info, then the best best is the Crystal help files. They have lots of sample code there you can learn from. It's not as good as my ebooks, but its free (and that is always a good thing).
You can find out more about my books at
Amazon.com
or reading the
Crystal
Reports eBooks online.