Print Page | Close Window

'MyClassLib.CachedMyReportDoc' does not contain a

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=12815
Printed Date: 06 May 2024 at 11:40am


Topic: 'MyClassLib.CachedMyReportDoc' does not contain a
Posted By: FireStorm2012
Subject: 'MyClassLib.CachedMyReportDoc' does not contain a
Date Posted: 05 Apr 2011 at 7:04am

I am receiving the following error when attempting to compile an ASP.NET application:

'MyClassLib.CachedMyReportDoc' does not contain a definition for 'Site' and no extension method 'Site' accepting a first argument of type 'MyClassLib.CachedMyReportDoc' could be found (are you missing a using directive or an assembly reference?)

This error occurs in the report doc code-behind, specifically on the this.Site property in the following method:

public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { 
 
MaterialReportDoc rpt = new MaterialReportDoc();
 rpt.Site = this.Site;

 return rpt;
}


I have no idea how to fix this properly.

Any help will be appreciated.

 




Print Page | Close Window