Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !

I am working in VB.NET using visual studio 2015.

Unfortunately i could not find the Reporting Tool (i.e. Crystal Reports) in Visual Studio 2015.

The Same Problem also came when i started Visual Studio 2010 but i found "SAP CRYSTAL REPORTS VERSION FOR VISUAL STUDIO 2010" over internet and downloaded it and my problem solved.

Now i could not find any Reporting Tool for Visual Studio 2015.

Can anyone help me !

I need to develop Crystal Reports in my project of Visual Studio 2015.

Thanks !

Regards:
Asim
Posted
Updated 7-Mar-18 11:54am
Comments
Onudipto 30-Sep-18 20:19pm    
Crystal report is not loading data..
Onudipto 30-Sep-18 20:21pm    
My project crystal report for vs 2010 nicely works in windows xp but when I setup it in windows 7 or 10 it does not work any 32 or 64 bit windows. I used datatable in crystal report. I discussed with many big programmers they suggest me about add some dll in project or use dataset. but it does not work also. same problem.

in loading crystal report with dataset or dataTable. In this section tyu.SetDataSource(ds); does not load data

I use SQL Server in database and c# windows application.

What I have tried:

private void PrintRep()
{

//DataSet ds = new DataSet();
//string connStr = ConfigurationManager.ConnectionStrings["conn_str"].ConnectionString;
SqlDataAdapter dadapter = new SqlDataAdapter("SELECT * FROM dbo.T_ATTR Order by dbo.T_ATTR.IndRegID ", "Data Source=DESKTOP-IRFOPKM\\SHUVO;Initial Catalog=ServiceOneEasyClock;User ID=sa;Password=S123456_");
DataSet dset = new DataSet();
dadapter.Fill(dset, "dbo.T_ATTR");
int op = 0;
op= 1;
frmReportsViewer rptviewer = new frmReportsViewer(op, dset);
rptviewer.Show();
}

private void frmReportsViewer_Load(object sender, EventArgs e)
{
if (option == 1)
{
try
{ //ParameterFields pfs = new ParameterFields();
//pfs = GetCompanyInformation();
//crystalReportViewer1.ParameterFieldInfo = pfs;
string username = "sa"; // database user name
string password = "S123456_"; //database password



ds.AcceptChanges();
tyu.Refresh();
////tyu.Refresh();
//tyu.Refresh();
try
{
tyu.SetDataSource(ds);
}

catch(Exception ex)

{
MessageBox.Show(ex.ToString());
}
crystalReportViewer.ReportSource = tyu;
crystalReportViewer.RefreshReport();
crystalReportViewer.Show();

}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}

if (option == 2)
{
try
{ //ParameterFields pfs = new ParameterFields();
//pfs = GetCompanyInformation();
//crystalReportViewer1.ParameterFieldInfo = pfs;
oRpt2.SetDataSource(dtr);
crystalReportViewer.ReportSource = oRpt2;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}
}

1 solution

check out the following link http://scn.sap.com/docs/DOC-7824[^]
 
Share this answer
 
Comments
Member 12807981 24-Nov-16 21:13pm    
code vb

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900