Not declared..?

K

Kent Johnson

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.
 
A

Alex Papadimoulis

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.OpenReportByTempCopy instead.

--Alex Papadimoulis
 
N

Natty Gur

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
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top