C# and .NET interview Question – Implementation of crystal report in a project.

Answer:

Any project you take in .NET or any language reporting is an integral part of the application. You will rarely find application without reports. Due to heavy usage of reporting in application this topic becomes a hot favorite of interviewers.  There are two prominent technologies by which you create reports in .NET one is crystal reports and the other is SQL reporting services.  In this
question we will try to answer from the crystal report point of view.

So again a very typical .Net interview question which is asked to understand if you know how to create crystal report.

Let’s demonstrate a simple example to see that, how we can create crystal report in our project.

Creation of crystal reports its basically 7 step process as following.

Step 1:-This is very simple and basic step for adding crystal report in the project for that just click on the “Project” menu and select “Add New Item” –> “Reporting”–> “Crystal Report”.

Step 2:-When you click on add button the following window will appear and you can select your choices according to your project requirement and then click OK.

Step 3:-As soon as you click on OK button a new window will appear from that expand Create New Connection ->OLEDB(ADO)  as you can see in below diagram.

Step 4:-Now, Expand the OLEDB(ADO) folder and a new window will appear with all the connection providers from that you can select your own connection provider name and click on “Next”.

Step 5:-When you click on Next a new window will pop-up where you can define your server name and your database name then click on Next another window will pop-up then click on “Finish” later you can see a new window like below diagram with your selected database then you can select the table on which you want to
generate report and click on “Next”.

Step 6:-Choose the field name, which you want to display on your report and click on “Finish”.

Step 7:-Once you have completed the above step then create a new form and place a CrystalReportViewer from the toolbox and define the report source like below diagram.

Once you select the report source click on “OK”, now you can run your project and see the report.

Please click here to see more interview questions and answers for c#

Regards,

Visit Authors blog for more Most asked c# interview questions

Advertisements

About c# and .NET Interview questions

This blog is for developers who want to crack .NET and C# interviews. It has all tips and tricks needed to crack .NET interviews , C# interview , SQL Server interview , Java interview , WCF Interview , Silverlight interview , WPF interview , LINQ interview , Entity framework Interview. Do not forget to watch our Learn step by step video series. Learn MVC in 16 hours:- https://www.youtube.com/watch?v=Lp7nSImO5vk Learn AngularJS Step by Step:- https://www.youtube.com/watch?v=0kmdjqgO9IY Learn Design Pattern in 8 hours:- https://www.youtube.com/watch?v=YDobmucohqk Learn C# and .NET in 60 days:- https://www.youtube.com/watch?v=yh2SrzCkNQA Learn MSBI in 32 hours:- https://www.youtube.com/watch?v=mGPJx3ocFgg Learn SharePoint Step by Step in 8 hours:- https://youtu.be/C2fW76SwJNU
This entry was posted in Csharp interview questions, programming interview questions and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s