Answered by:
Crystal Report In VS2010

Question
-
haiii
I am using visual studio 2010 for developing windows applications.Now i want to take some reports.I found that vs2010 is not giving crystal report as inbulit but giving as saperate.
i have another crystal report 11 software in my system.i design a report using crystal report 11 and put in my project.now i have a .rpt extension file in my project.But my problem is i cannot create an object for the file.Also many of the crystal report dlls are not avilable.
"using
CrystalDecisions.CrystalReports.Engine;" line also giving eoorror.i want to do somthing like
CrystalReportPurchaseReturnDetails cryrpt = new CrystalReportPurchaseReturnDetails(); //---here create the object of .rpt file --//
DataSet ds = new DataSet();
SqlParameter[] param = new SqlParameter[2];
param[0] =
new SqlParameter("@fromdate", dtpFromDate.Text);
param[0].SqlDbType =
SqlDbType.DateTime;
param[1] =
new SqlParameter("@todate", dtpToDate.Value.AddDays(1));
param[1].SqlDbType =
SqlDbType.DateTime;
ds = classObject.getDataSet(
"sp_ReportPurchaseReturnDateWise_Select", param);
cryrpt.SetDataSource(ds.Tables[0]);
this.crystalReportViewer1.ReportSource = cryrpt;
crystalReportViewer1.Refresh();Please Enyone help me
- Moved by Kee Poppy Monday, October 31, 2011 9:56 AM (From:Visual Basic Language)
Saturday, October 29, 2011 6:23 AM
Answers
-
If you have just switched to VS2010 having previously used crystal with an earlier edition, then run crystal's installer again (repair install) so that it can install itself into visual studio.
This is the VB.Net forum, not the C# forum.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:37 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Sunday, October 30, 2011 9:36 AM -
If you have just switched to VS2010 having previously used crystal with an earlier edition, then run crystal's installer again (repair install) so that it can install itself into visual studio.
submit article- Edited by hteh shshtjsj Monday, October 31, 2011 3:54 PM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:38 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Monday, October 31, 2011 3:53 PM -
Hi Ash,
For Crystal Report issues, please post in: http://forums.sdn.sap.com/forum.jspa?forumID=313
Thanks,
Kee Poppy [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:37 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Monday, October 31, 2011 9:54 AM
All replies
-
If you have just switched to VS2010 having previously used crystal with an earlier edition, then run crystal's installer again (repair install) so that it can install itself into visual studio.
This is the VB.Net forum, not the C# forum.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:37 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Sunday, October 30, 2011 9:36 AM -
Hi Ash,
For Crystal Report issues, please post in: http://forums.sdn.sap.com/forum.jspa?forumID=313
Thanks,
Kee Poppy [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:37 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Monday, October 31, 2011 9:54 AM -
If you have just switched to VS2010 having previously used crystal with an earlier edition, then run crystal's installer again (repair install) so that it can install itself into visual studio.
submit article- Edited by hteh shshtjsj Monday, October 31, 2011 3:54 PM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, November 3, 2011 5:38 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, November 16, 2011 8:37 PM
Monday, October 31, 2011 3:53 PM