PC Review


Reply
Thread Tools Rate Thread

CrystalReport1.prt

 
 
=?Utf-8?B?Sm9obg==?=
Guest
Posts: n/a
 
      9th Oct 2007
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.

 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      9th Oct 2007
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.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CrystalReport1 report=new CrystalReport1(); Selen Microsoft ASP .NET 0 25th May 2004 08:41 AM
Re: Dim oRpt As New CrystalReport1() failing Bernie Yaeger Microsoft VB .NET 13 27th Apr 2004 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 AM.