|
-
Apr 27th, 2005, 11:35 AM
#1
Re: Interop vs. Core [Not Resolved]
 Originally Posted by RobDog888
I was just re-reading some of the posts to make sure I didnt miss something and I did but it doesnt make sense.
"Imports Microsoft.Office.Interop.Outlook" make it work but at the office my system is using the "Imports Microsoft.Office.Interop"
only and that works?
Why is it different and why doesnt it recognise from just the Interop import the Outlook namespace?
well there are 2 different COM references, one is the Office 11.0 object library and one is the outlook 11.0 one.....
I think if you reference the first one, it gives you what you say you have at work... while the second give you what I had posted..
-
Apr 27th, 2005, 11:58 AM
#2
Re: Interop vs. Core [Not Resolved]
Well now I'm even more confused. I added a reference to MS Excel and with the Imports ...Interop only I can
do Dim oWB As Excel.Workbook without errors. I should be able to do the same for Outlook but it doesnt have the PIAs I guess.
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 
-
Apr 27th, 2005, 12:01 PM
#3
Re: Interop vs. Core [Not Resolved]
 Originally Posted by RobDog888
Well now I'm even more confused. I added a reference to MS Excel and with the Imports ...Interop only I can
do Dim oWB As Excel.Workbook without errors. I should be able to do the same for Outlook but it doesnt have the PIAs I guess.
do you see the outlook PIA in the GAC?
-
Apr 27th, 2005, 12:09 PM
#4
Re: Interop vs. Core [Not Resolved]
But if you add just the Outlook reference then it adds both the Outlook and Office references.
I'll look in the GAC.
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 
-
Apr 27th, 2005, 12:54 PM
#5
Re: Interop vs. Core [Not Resolved]
 Originally Posted by RobDog888
But if you add just the Outlook reference then it adds both the Outlook and Office references.
I'll look in the GAC.
its weird... if i remove the office reference but leave the outlook one, it still works.. did this to test
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim OL As New Microsoft.Office.Interop.Outlook.ApplicationClass
MsgBox(OL.Version)
OL = Nothing
End Sub
im not sure if you lose any other functionality though...
-
Apr 27th, 2005, 12:58 PM
#6
Re: Interop vs. Core [Not Resolved]
I dont see the PIAs I re-ran the Office setup and double checked if the .NET Programmability were installed
for all products and they were. Should I install the PIA Redistributables download too?
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 
-
Apr 27th, 2005, 01:01 PM
#7
Re: Interop vs. Core [Not Resolved]
 Originally Posted by RobDog888
I dont see the PIAs I re-ran the Office setup and double checked if the .NET Programmability were installed
for all products and they were. Should I install the PIA Redistributables download too?
hmmm maybe.. or can you select an uninstall of the PIAs in the office setup, and then try to install them again?
-
Apr 27th, 2005, 01:11 PM
#8
Re: Interop vs. Core [Not Resolved]
Ok, I removed the Outlook PIA and re-opened my Outlook project. Removed the reference and re-added it.
It works now but then that means I dont have PIAs for Outlook. It worked the other way (with PIA) but I'll have to
connect to work and compare the GAC? (I'm playing hooky from work today )
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 
-
Apr 27th, 2005, 02:18 PM
#9
Re: Interop vs. Core [Not Resolved]
I don't know what that office one does. I remember that I added it, removed it, added it again, etc. Never did see any changes.
My usual boring signature: Nothing
 
-
Apr 27th, 2005, 04:46 PM
#10
Re: Interop vs. Core [Not Resolved]
The Office reference is the core of the Office program. Like commandbars, toolbars, buttons, and menu items.
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 
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
|