Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2006, 04:44 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Crystal Report in VS.NET 2005


Hi everybody ,

Can somebody help me in the following problem.

I have converted ASP.NET 2003 project to ASP.NET 2005 it has converted all required files to 2005 format successfully , but it is not displaying crystal report in report viewer by throwing Exception "Unable to find the report in given manifest , rebuild the project and run again like this" . The code snippts is as below:

ReportClass oRpt = new Reports.rptXpressFollowUp();

oRpt.Load();

oRpt.SetDataSource(ds);

Session["oRpt"]=oRpt;

rptViewer.ReportSource = oRpt;

Also how i can create object of CrystalReport as i do in 2003 version like

new CrystalReport( ). In 2005 version .cs file of crystal report is missing. How can i overcome this problem.


Saeed Nawaz.
Sr. Software Engineer / Team Lead
 
Old March 4th, 2006, 03:59 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I think you have to recreate the pages for vs2005. I have some CRs and I use the CRViewer and CRReportSources controls. Configure the CRReportSource object. Then in the code behind:

CrystalReportSource1.ReportDocument.DataSourceConn ections.Item(0).SetConnection("<server>", "<database>", False)
CrystalReportSource1.ReportDocument.DataSourceConn ections.Item(0).SetLogon("UId", "PW")

Jim







Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploye crystal report with VB.NET 2005 zrtv Crystal Reports 2 June 6th, 2009 08:09 AM
Crystal Report problem in ASP.Net aliirfan84 ASP.NET 2.0 Professional 0 July 11th, 2007 02:11 AM
Crystal Report Problem with ASP.Net 2.0 aliirfan84 ASP.NET 2.0 Professional 1 June 17th, 2007 01:39 AM
Facing problem using crystal report in VS 2005 dinesh_bali ASP.NET 2.0 Professional 0 May 5th, 2007 03:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.