Not declared..?

  • Thread starter Thread starter Kent Johnson
  • Start date Start date
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.
 
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
 
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
 
Back
Top