How to create Crystal report and database importing techniques?
Here i am going to define Step by step How to create Crystal report and database importing techniques?
Step 1). At first we need to download crystal report.
Step 2). Here we learn how to create database?
Let say i want to create database named Pankaj.
then we need to open sql server what ever version you have installed in your System.
Now we will have to connect SQL Server now your system is connected with SQL Server.
Now you will see Object Explorer window
There is an option 'Database' then you have to right click on database and select the submenu New Database. A new window will open here you need to Give The name of Database. Then click on OK Button. A New a database has been created with the name Pankaj. Now you have to click on Object explorer window there is your database pankaj is available there is an option in Pankaj database named Table you need to right click on Table option and select New Table from Sub menu.
Database name Pankaj
Table name1—project1
Table name1—project1
Again you have to Put Up the value of your Databse item/attribute. and write like this.
Field name--Emp_Id-nvarchar(50)(Primary key)
P_Name-varchar(50)
If you want to create more than one Table in your database then you have to do the same step during creating new Table.
Again you have to Put Up the value of your Databse item/attribute. and write like this.
Table name2—project2
Field name--F_Namevarchar(50)
Department--varchar(50)
Emp_Id--nvarchar(50)(foreign key)
Now create a foreignkey for your database here we exploring this step using Screen Shot.
Next Step:-
1- Go to new website and right click on solution explorer -- add new Item --- Select Crystal Report and add.
2- Select standard and go to next.
3- Provide necessary information to log on to the chosen data source and next.
4-Choose the data you want to be on report.
5-next
6-Choose the information to display on the report.next
7—To choose group the information next.
8-select summary of the report and go to next
9—select subset of information to display and go to next.
10--finish
11-Now format of crystal report.
12-Go to Toolbox and Select crystal report viewer.
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="1202px"
ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl=""
ToolPanelWidth="200px" Width="1104px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport.rpt">
</Report>
</CR:CrystalReportSource>
</div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="1202px"
ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl=""
ToolPanelWidth="200px" Width="1104px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport.rpt">
</Report>
</CR:CrystalReportSource>
</div>
13-Select report source.
14-select crystal report when you make.
15-Now completed crystal report.
Now You have Created a Crystal Report.


















nice
ReplyDelete