how to create crystal reports in .net
Answers were Sorted based on User's Feedback
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 |
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 |
how to create crystal reports in .net
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?
Why is Excel Report preferred over crystal reports?
3 Answers Atos Origin, Collabera, Lighthouse Technologies,
How can we improve the performance of a crystal report?
When looking at the join types in Crystal - what does it mean when you coose Enforce and Enforce To or Enforce From
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?
How to refresh the crystal report from the application ?
How many Sub Reports added in One MainReport?
4 Answers Amadeus, Aviva, CTS, Patni, Welkin,
How many types of reports can be generated in crystal reports?
7 Answers Finite Infotech, Precision Techconet, VMware, winfoware,
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.
Can we call or add subreport within subreport?
What does it mean when we get the error message "Invalid report version" when try to open a Crystal Report?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)