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

Where is the image located, after youve placed it on the report?

0 Answers  


how to create crystal reports in .net

2 Answers   CTS,


Why do we use crystal reports when we have reporting tools in bo itself?

0 Answers   Tech Mahindra,


how should i highlight a particular column in a report in actuate e designer report? It should be done dynamically while creating report Thanks in advance!!!!!!!!!!

0 Answers  


Can we use our own SQL for creating a report?

5 Answers  






How to open subreport in New IE window using hyperlink button. I used target=new; in the formula field. But it overrides the main window and show the report. Can anybody answer this please....... Regards Vimal.

1 Answers   GRV India, Patni,


I have a crystal report with a linked subreport as well. is there any way not to print the current record on the main report if no records are returned from the subreport? thanks you email - stanlte@yahoo.com

3 Answers  


hi.. i've created a crystal report and one crystal report viewer in windows form. i've two form form1 and form2 in form2 i've kept one button called print. when i press this button it should print the document into .pdf format. without using the crystal report viewers print button.

0 Answers  


How to "Print" in Crystal Reports while using ASP DOT NET Platform?

3 Answers  


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

4 Answers   Covansys,


Is it possible to join more than one universe in Busniess Objects BOE XI ? If its so Please explain how is that possible ? Thanks in advance for the people posting the answers

3 Answers   Wipro,


How to present data from Crystal Reports on to form?

3 Answers  


Categories