|
-
Dec 12th, 2007, 02:11 AM
#1
Thread Starter
Lively Member
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.
-
Dec 12th, 2007, 03:11 AM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 12th, 2007, 03:28 AM
#3
Thread Starter
Lively Member
Re: Crystal Report: Method or data member not found
I have CR installed in my pc.
Crystal Report 8.5 Developer.
-
Dec 12th, 2007, 03:59 AM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 12th, 2007, 04:33 AM
#5
Thread Starter
Lively Member
Re: Crystal Report: Method or data member not found
There is no any missing references.
How to determine the reference of the method ?
-
Dec 12th, 2007, 04:36 AM
#6
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 12th, 2007, 04:55 AM
#7
Thread Starter
Lively Member
Re: Crystal Report: Method or data member not found
Code:
CrystalReport1.Destination = crptToWindow
It points to the Destination.
-
Dec 12th, 2007, 05:04 AM
#8
Thread Starter
Lively Member
Re: Crystal Report: Method or data member not found
So do u have any idea what reference I need to add?
-
Dec 12th, 2007, 07:58 AM
#9
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.
-
Dec 13th, 2007, 12:53 AM
#10
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|