cancel
Showing results for 
Search instead for 
Did you mean: 

Creports 2008 in Vb.net 2005

Former Member
0 Kudos

If I add a report Crystal Reports 2008 to a Project of Visual Studio 2005, which I must add to the project so that the report can be loaded without problems.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As i understood you want to use Crystal report with visual studio.We can view crystal report with the help of CrystaReportviewer.

we need to use:-

CrystalDecisions.CrystalReports.Engine;

CrystalDecisions.Shared;

Samples are here:-

[https://boc.sdn.sap.com/codesamples]

If you are having issue through code then post you message in NET Development - Crystal Reports Forums

Link is here:

[https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum]

Hope that helps!!

Regards,

Shweta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anibal,

Try with this for web application:


 protected void Page_Load(object sender, EventArgs e)
    {
     string Reportpath = Server.MapPath("World Sales Report.rpt");
    CrystalReportViewer1.ReportSource = Reportpath;  

    }

For windows application you can try with this code:


 ReportDocument Rdoc = new ReportDocument();
/*Crystal report path*/
 Rdoc.Load(Application.StartupPath + "//..//..//CrystalReport1.rpt");

Hope that helps!!

Regards,

Shweta