Re: CrystalReport1.prt

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.



.



Relevant Pages

  • Re: Hungarian notation pros vs cons
    ... be in a different namespace than Employee. ... typing, but only when you declare the object or are tryign to cast it. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hungarian notation pros vs cons
    ... But what about in the database where you can't organize by namespace? ... Even if namespaces didn't solve this, Employee would be a bad ... >> Does anyone disagree with using Hungarian notation? ... > 4) It's inconsistent with the rest of the framework. ...
    (microsoft.public.dotnet.languages.csharp)
  • Why use relational tables in OO (please just take a look inside)
    ... a table is defined with just one field -- employee pointer ... Because employee pointers are included directly in the indexes, ... using namespace boost; ... typedef tableemp_table; ...
    (comp.object)
  • Re: XPath and default (overridden) namespaces
    ... Peter Theill wrote: ... You should realize that namespace is integral part of an element name, ... so "All "Employee" nodes" actually makes little sense. ... PS. Make sure you read "XML Namespaces and How They Affect XPath and ...
    (microsoft.public.dotnet.xml)
  • RE: Sub report message
    ... performs the first join and then include that query in your SQL statement." ... Left join employee table to issue table. ... 1.I checked the main report query to see if there was a problem. ... All site staff are listed including all of the Food Service ...
    (microsoft.public.access.reports)