Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Not declared..?

Reply
Thread Tools

Not declared..?

 
 
Kent Johnson
Guest
Posts: n/a
 
      10-19-2003
Hi all,

How come that I get...
'OpenReportMethod is not declared'

With code below....

Dim rpt As New CrystalReport1()
rpt.Load(Server.MapPath("~/CrystalReport1.rpt"),
OpenReportMethod.OpenReportByTempCopy)
CrystalReportViewer1.ReportSource = rpt

/Kent J.


 
Reply With Quote
 
 
 
 
Alex Papadimoulis
Guest
Posts: n/a
 
      10-20-2003
Hi Kent,

OpenReportMethod is in the CrystalDecisions.Shared namespace. You'll need
to import this name space at the top, or use
CrystalDecisions.Shared.OpenReportMethod.OpenRepor tByTempCopy instead.

--Alex Papadimoulis
"Kent Johnson" <(E-Mail Removed)> wrote in message
news:FLCkb.30196$(E-Mail Removed)...
> Hi all,
>
> How come that I get...
> 'OpenReportMethod is not declared'
>
> With code below....
>
> Dim rpt As New CrystalReport1()
> rpt.Load(Server.MapPath("~/CrystalReport1.rpt"),
> OpenReportMethod.OpenReportByTempCopy)
> CrystalReportViewer1.ReportSource = rpt
>
> /Kent J.
>
>



 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      10-20-2003
Hi,

You are missing a reference (CrystalDecisions.Shared) or "Using"
namespace - CrystalDecisions.Shared.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
To be not, or not to be not? Ruby Freak Ruby 2 09-23-2008 08:04 AM
Why not 'foo = not f' instead of 'foo = (not f or 1) and 0'? Kristian Domke Python 11 01-23-2008 07:27 PM
'' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long. rote ASP .Net 2 01-23-2008 03:07 PM
Cisco 3640 3620 3600 not detecting, not enabling, not working: NM-2FE2W Taki Soho Cisco 0 09-22-2004 07:28 AM
maintaining control with cookies (not strictly an ASP or even server side question. But not not either) Stephanie Stowe ASP General 2 04-07-2004 04:23 PM



Advertisments