Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Crystal Report Object Post Reply Post New Topic
Author Message
jyosh_04
Newbie
Newbie
Avatar

Joined: 26 Jul 2007
Online Status: Offline
Posts: 1
Quote jyosh_04 Replybullet Topic: Crystal Report Object
    Posted: 26 Jul 2007 at 10:57am

Hi,

  I am trying to create a crystal report object in C# (VS 2005). I added a crystal report to my project and named it CrystalReport.rpt

 I am using the namespaces

using CrystalDecisions.Shared;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.ReportSource;

 

and the statement is CrystalReport myReport = new CrystalReport();

I get the following error. I am not sure if I am missing anything. Please do let me know

Error 1 The type or namespace name 'CrystalReport' could not be found (are you missing a using directive or an assembly reference?) 

Can someone help me. I appreciate the help in advance.

IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 27 Jul 2007 at 6:31am
Here may be a solution
 
In VB.Net
 
Dim rpt as new nameofexistingreport
 
I create a new instance of the report (an object) that  I have developed and is in my project/solution.Your existing report should show up in intellisense as one of the selection options.  I then work with the rpt object.
 
I am not a C# person so I won't try to offer the syntax for it.
 
 
Hope this helps
 
John W.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 27 Jul 2007 at 8:59am
Use the ReportDocument class instead. There is no class called 'CrystalReports'.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.