Re: CrystalReport1.prt
- From: "sloan" <sloan@xxxxxxxxx>
- Date: Tue, 9 Oct 2007 10:50:47 -0400
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/support/communitycs/TechnicalPapers/rtm_reportingoffadonetdatasets.pdf?recDnlReq=Record&dnlPath=rtm_reportingoffadonetdatasets.pdf
"John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:25CEFDD2-97D4-4335-BF2F-8D44CFDB63CA@xxxxxxxxxxxxxxxx
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.
.
- Prev by Date: Re: 'True' could not be set on property
- Next by Date: Re: Adding a new row to a datagrid without a dataset
- Previous by thread: Re: System.OutOfMemoryException in asp.net web application
- Next by thread: Re: Adding a new row to a datagrid without a dataset
- Index(es):
Relevant Pages
|