CrystalReport1.prt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.co...rd&dnlPath=rtm_reportingoffadonetdatasets.pdf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top