Solved

How do I design and display .Net Crystal reports using VS 2010?

Posted on 2011-03-07
6
730 Views
Last Modified: 2012-05-11
Hi:

I'm very much a newbie to designing/implementing Crystal reports into the .Net applications.
I'm building a winForm application in which I want to embed some Crystal reports.

I think I more or less understand how to display an existing report in a Crystal Report Viewer
object that's embedded into a win form.
I've done some work with SSRS, so I have some familiarity with reporting.

If I was tied to a backend SQL or ORACLE db, then I think this would be pretty straight forward.
The issue is that is not the case.

We're using a proprietary backend DB. So, using it as connected DB source is not an option.
At runtime, I've basically got a .Net DataTable (Columns, Rows) loaded with data which I want
to display in my Crystal report. I've seen several examples on how to assign the datasource
to a crystal report @ runtime.

The piece I don't understand is... "How do I design my Crystal Report?"
If I was connected to the datasource, then I would see fields availabe from table, view, stored procedure.
But that's not the case here.

How do I define the field set to be used when designing the report?
Is there some sort of custom schema definition that I need to create
(matched against the runtime DataTable columns)?

Is there anything special in terms of databinding that I have to do when I generate/load the report?

Is what I'm trying to do straight forward?
Can you point me to some appropriate tutorials?

Thanks,
JohnB
0
Comment
Question by:jxbma
6 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
THis should help.  It shows how to pass a dataset to a report.

http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

mlmcc
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
Comment Utility
Hi, you have to download first SAP Crystal report for Vs2010. After installing it then after you have to use the crystal report.
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
Comment Utility
Hi, from the following link you have to download it.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 1

Expert Comment

by:lalitgada
Comment Utility
by default use crystal report wizard.
by using this you get the idea to start using of crystal report.
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
Comment Utility
Please Check following thread for Step by Step Crystal Report in .Net

http://www.crystalreportsbook.com/Crystal_Reports_Net_Ch01_1.asp
0
 
LVL 1

Author Closing Comment

by:jxbma
Comment Utility
Right on the money.

Thanks!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now