Results 1 to 10 of 10

Thread: Crystal Report: Method or data member not found

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Crystal Report: Method or data member not found

    Hi all.

    When I run my VB6 application, I got this error below,

    Compile Error: Method or data member not found.

    And it points to my Crystal Report method which is,


    What I need to do to solve this prob ? Do I need to add any references?

    Thanks.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Crystal Report: Method or data member not found

    Its because you are missing at least 1 reference.
    Sounds like maybe you dont have CR installed?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Crystal Report: Method or data member not found

    I have CR installed in my pc.
    Crystal Report 8.5 Developer.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Crystal Report: Method or data member not found

    Open up your references and see if it shows any checked references tagged with a prefix of "MISSING:".

    If not then you need to determine which reference the method is located in so you can add it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Crystal Report: Method or data member not found

    There is no any missing references.
    How to determine the reference of the method ?

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Crystal Report: Method or data member not found

    You have to go through your CR code that you wrote and find what dependancies each object has. Its in the Runtime.hlp file. What CR code does it point to? Your first post doesnt show any code.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Crystal Report: Method or data member not found

    Code:
    CrystalReport1.Destination = crptToWindow
    It points to the Destination.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Crystal Report: Method or data member not found

    So do u have any idea what reference I need to add?

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Crystal Report: Method or data member not found

    It isn't looking for a reference, it is looking for an actual CR Control to be on the form. Do you have that control in your toolbox?

    If not, then you will need to add it through the components interface.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Crystal Report: Method or data member not found

    What control do I need to add ?
    Those are the controls that I tick in the controls tab:
    1. Crystal Report Control
    2. Crystal Report Viewer Control
    3. Crystal Select Expert OLE Control Module

    What else did I miss to have it ticked ?
    Last edited by azrina; Dec 13th, 2007 at 01:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width