Not declared..?

Discussion in 'ASP .Net' started by Kent Johnson, Oct 19, 2003.

  1. Kent Johnson

    Kent Johnson Guest

    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.
     
    Kent Johnson, Oct 19, 2003
    #1
    1. Advertising

  2. 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
    "Kent Johnson" <> wrote in message
    news:FLCkb.30196$...
    > 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.
    >
    >
     
    Alex Papadimoulis, Oct 20, 2003
    #2
    1. Advertising

  3. Kent Johnson

    Natty Gur Guest

    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!
     
    Natty Gur, Oct 20, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guoqi Zheng

    Name 'DiffGram' is not declared.

    Guoqi Zheng, Jan 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    388
    Guoqi Zheng
    Jan 12, 2004
  2. TJS

    "name not declared" but it is

    TJS, Feb 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    5,951
    vMike
    Feb 3, 2004
  3. Scott M.
    Replies:
    2
    Views:
    547
    Kevin Spencer
    Feb 5, 2004
  4. JohnZing

    declared or not declared ?

    JohnZing, Feb 5, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,623
    Jon Paal
    Feb 5, 2006
  5. lostlander
    Replies:
    5
    Views:
    438
    Keith Thompson
    Dec 10, 2007
Loading...

Share This Page