how to create crystal reports in .net

Answers were Sorted based on User's Feedback



how to create crystal reports in .net ..

Answer / shekhar

Select new item add Crystareport.rpt.report page will be
generated.In asp page u need to add crystal report viewer
control.
In aspx page follow the below code.....
ReportDocument rpt=new ReportDocument()
....
.....
..Fill the type dataset with ur required data.
.......
.....
rpt.Load(server.mappath("crystareport name"))
rpt.SetDataSource(objds);
CRV10.ReportSource = rpt;
.................
.............
after that switch to crystal report form and add dataset to
the report using databse expert......

Is This Answer Correct ?    12 Yes 2 No

how to create crystal reports in .net ..

Answer / santosh kumar

Firstly Create report. Then use crystal report viewer that
will be docked or normal view in any form.

U have to create object of created report and form that
contain report viewer.

dim crp_MyReport= new crp_ReportTest
Dim frm_Viewer=new frm_ViewerTest
If u want to pass parameter
dim parameter system.crystaldecision.shared.parameter
dim parameters system.crystaldecision.shared.parameters
dim parameters=crp_myreport.parameters
for each parameter in parameters
select .parameterfieldname
case "parametername1"
.currentvalue.addvalue(value)
end case
next
frm_viewer.crv_viewer.refresh()
frm_viewer.crv_viewer.reportsource=crp_Myreport
frm_viewer.show()

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More Crystal Reports Interview Questions

How can we improve the performance of a crystal report? OR What all performance improvement techniques used in crystal reports? (particularly CR XI)

9 Answers   CSC, ERS, Jupiter,


Can anyone help me with an answer to this question? Where is the image located, after you've placed it on the report?

2 Answers  


How do you format your crystal reports so that on exporting to word doc or pdf it will not lose the orginal format

3 Answers   Target,


Can we add any database field once we have chosen ?Close? button?

2 Answers  


hi.. i've one crystal report. i want the report header as "employee database". i dont want to right click->insert and goto text object and insert. i've one aspx page and aspx.cs page also. now i want the "employee database" header to be printed from .cs file. i dont want to pass by parameter also.. i.e is there any option in .cs file something like ReportDocument myreport = new ReportDocument(); myreport.Load(MapPath("~/" + "emp.rpt")); myReport.Reportheader="Employee database"; i hope u have understood this. only thing is from .cs file i want to print the header as employee database. i dont want by passing parameter also... please help....

0 Answers  






HI all, I am developing reports using crystal reports in VS2005 in windows application. I have two crystalreports name called "studentReport" and "familyReport". I have a form with a button. If I click the button I need to show up the two reports in one report like page1, and page2. The page1 consists the "studentReport" and the page2 contains the "familyReport". The "familyReport" contains different header and footer. How to show up the two crystal reports in single crystalreportviewer?

2 Answers  


Where can we find the log file generated when we run a crystal report?

0 Answers  


Explain reporter footer contents are move depend the page footer values?

0 Answers  


Can we use Crystal report as a stand-alone application?

4 Answers   Covansys,


How the data expert of flash object(after inserting flash object_right click-data expert) is useful in crt?

0 Answers  


What are the advantages or disadvantages of using Crystal Reports in a Windows Forms application as opposed to say rolling our own reports as HTML and displaying them in the Internet Explorer control?

2 Answers  


Suppose I am not able to see any image on crystal report at run time. So how can I load any image which is saved in local disk so that it can be viewed at runtime in crystal reports?

0 Answers  


Categories