When you create a CR, you are actually creating an object (somewhere).
So just like any other object, you need the namespace to get to it.
Like, if you have a class like this
namespace MyCompany.MyApplication.BusinessLayer
public class Employee
in order to use this class anywhere else, you gotta do something like
using MyCompany.MyApplication.BusinessLayer;
//and then in the code somewhere
Employee e = new Employee();
With your CR, you need to find and using/import the correct namespace.
If you named your report "EmployeeByDepartmentReport", then you'd have to do
this;
using MyCompany.MyApplication.SomeOtherNamespaceProbably;
//and in the code somewhere
EmployeeByDepartmentReport empDeptRpt = new EmployeeByDepartmentReport();
See this KB as well:
http://resources.businessobjects.com...etdatasets.pdf
"John" <(E-Mail Removed)> wrote in message
news:25CEFDD2-97D4-4335-BF2F-(E-Mail Removed)...
> When we create CrystalReport1.prt for a winform, the system create
> CrystalReport1.cs for us. If we create CrystalReport1.prt for a webform,
> there's no CrystalReport1.cs created for us. Am I missing something?
>
> I see some sample code using statements like "private CrystalReport1
> report
> = new CrystalReport1();" How can I do this?
>
> Thanks.
>