Nov 14th, 2006, 01:03 PM
#1
Thread Starter
Hyperactive Member
Outlook Add-In
OK, I have the Outlook Add-In, it works on the Development machine,
but how do you deploy it now?
It makes a .DLL and I've tried installing that on another machine and registering it and when it starts I get a "Can't Create ActiveX control"....
Can't figure out what I am missing on the Deployment machine!
I looked at [FAQ's: OD] How do I use VB 6 to make an Add-In for an Office application? but it doesn't really say anything about deployment...
Nov 14th, 2006, 01:41 PM
#2
Nov 14th, 2006, 02:47 PM
#3
Re: Outlook Add-In
You are missing all the dependencies that your program needs....
Nov 14th, 2006, 02:55 PM
#4
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Originally Posted by
randem
You are missing all the dependencies that your program needs....
I of course tried PDW without success...
Also tried manually trying to figure out what exactly I needed but still no go....
My deployment machine has the VBRuntime stuff on it... Dependency check doesn't show anything different than what I already have...
Nov 14th, 2006, 04:22 PM
#5
Nov 14th, 2006, 04:30 PM
#6
Re: Outlook Add-In
You shouldnt need to create a package for an AddIn unless you are using additional resources like ADO or a form with a ocx control etc. What does your AddIn do?
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
Nov 14th, 2006, 05:10 PM
#7
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Originally Posted by
RobDog888
You shouldnt need to create a package for an AddIn unless you are using additional resources like ADO or a form with a ocx control etc. What does your AddIn do?
That is what I thought as well. It is not real complicated. It simply checks to make sure that the Subject Line is not blank before sending the message. If it is blank it displays a messagebox and cancels the send.
Nov 14th, 2006, 05:35 PM
#8
Re: Outlook Add-In
Then perhaps its a Outlook version issue. Is the target system running the same version of Outlook?
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
Nov 15th, 2006, 07:20 AM
#9
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Originally Posted by
RobDog888
Then perhaps its a Outlook version issue. Is the target system running the same version of Outlook?
Deployment machine has 11.8010.8107 SP2
Development machine has 11.6568.6568 SP2
Guess I have to try and track down exactly where the
"Run-time error '429':
ActiveX component can't create object
is comming from......
Nov 15th, 2006, 08:10 AM
#10
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Can't figure out exactly what I am doing wrong.
Something stupid, I'm guessing...
Attached Files
Nov 15th, 2006, 11:59 AM
#11
Thread Starter
Hyperactive Member
Re: Outlook Add-In
One more bit of information, the Add-In causes an Error the first time it is used, as long as I trap the error, it will work the second time....
Funny that it works fine on the development machine, that is why I thought it was a deployment problem, may be more of a problem with the add-in code itself..
Nov 15th, 2006, 03:51 PM
#12
Re: Outlook Add-In
Well if its working the second time then its not missing any references then. I'll look through your 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
Nov 15th, 2006, 03:56 PM
#13
Re: Outlook Add-In
Sure he did. Post #1 and #9.
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
Nov 15th, 2006, 03:57 PM
#14
Re: Outlook Add-In
Then that would be you attempt to use the control before you create it and by the second time you actually create it. Are you creating controls dynamically?
Nov 15th, 2006, 03:58 PM
#15
Re: Outlook Add-In
Right, but i dont see anything yet that looks like that would be the case.
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
Nov 15th, 2006, 04:02 PM
#16
Re: Outlook Add-In
Worked perfect the very first time for me. 11.8010.8107 SP2
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
Nov 15th, 2006, 04:05 PM
#17
Re: Outlook Add-In
Ok, So how does one use this Add-In to test it?
Nov 15th, 2006, 04:10 PM
#18
Re: Outlook Add-In
Works perfectly for me also...
Nov 15th, 2006, 04:11 PM
#19
Re: Outlook Add-In
To debug/test an AddIn you need to open the project, add a breakpoint on the OnConnection sub, then in the project properties choose "Start program" under the debugging tab, and select the path to your outlook.exe, then Run with full compile. Make sure Outlook is not running first as VB 6 will start it for you. Then you can step through the procedures and test it by creating a test email with no subject.
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
Nov 15th, 2006, 04:14 PM
#20
Re: Outlook Add-In
@tward... is the error message from the oApp_ItemSend procedure or somewhere else?
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
Nov 15th, 2006, 05:27 PM
#21
Thread Starter
Hyperactive Member
Nov 15th, 2006, 06:19 PM
#22
Re: Outlook Add-In
So then that means that the event if firing and thusly the oApp application object is being initialized from the OnConnection sub correctly. If it wasnt then the event wouldnt first with your oApp_ItemSend in the msgbox title but would be a generic vb error msg.
this is being tested for sending of an email and anot a meeting request or other object? Is word selected as the default email client editor for mail messages?
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
Nov 16th, 2006, 07:28 AM
#23
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Yes, I am testing it when sending an email and Word is the default editor on both machines.
I have actually just tracked it down to the following line that is causing the problem:
frmMessageBox.Show vbModal
Odd... Why would it fail on a form?
I do notice that the first time I press "New" message on the machine with the problem, I get the following error:
"Runtime Error '-214746259 (80004005)'
Method '~' of object '~' failed"
Nov 16th, 2006, 07:33 AM
#24
Thread Starter
Hyperactive Member
Re: Outlook Add-In
It will work fine if I use a messagebox instead of my own custom form. The problem is that the messagebox appears behind the email message so it appears to lock outlook up unless you switch to Outlook... Another words the messagebox comes up in front of Outlook instead of the Message....
Nov 16th, 2006, 07:57 AM
#25
Thread Starter
Hyperactive Member
Re: Outlook Add-In
This actually fixes it (just hiding the error on the Loading of the form), then showing the form and it seems to work..
Don't really know why I get that error on trying to load a form..
Attached Files
Nov 16th, 2006, 11:55 AM
#26
Re: Outlook Add-In
There are other ways to set the form as TopMost so it doesnt interfere with Outlook, but we both tested it out and we didnt get that error. Could it be a bug in that version of Outlook? It doesnt appear to be patched with the latest updates.
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
Nov 16th, 2006, 12:12 PM
#27
Thread Starter
Hyperactive Member
Re: Outlook Add-In
I would have liked to use just a standard msgbox command, but that is the one that comes up behind the mail window...
A bug with my development Outlook?
The deployment machine is the same version that you said it worked on for you....
The error had to do with simply loading the form though....
I can't explain what is going on, but ignoring the error (which I don't usually like to do) when I do the Load frmMessageBox, causes the frmMessageBox.Show vbModal to work fine!
Nov 16th, 2006, 12:14 PM
#28
Re: Outlook Add-In
What about loading the form but not showing it until you need to display it?
Load Form1
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
Nov 16th, 2006, 12:35 PM
#29
Thread Starter
Hyperactive Member
Re: Outlook Add-In
That is what the new version I attached is doing....
The load causes the error I was getting, but I just ignore it and then Show in Modally which seems to work just fine...
Nov 16th, 2006, 12:40 PM
#30
Re: Outlook Add-In
Oh well at least its working for you now. Just wondering why it doesnt work under your target system yet works on ours.
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
Nov 16th, 2006, 12:52 PM
#31
Thread Starter
Hyperactive Member
Re: Outlook Add-In
Wish I knew.....
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