PC Review


Reply
 
 
Dave
Guest
Posts: n/a
 
      5th Apr 2004
Due to limitations in Ms Access, I have created a form in vb.net with
various buttons etc. Once all this is said and done, all i want to do is to
have this form fired up in ms access some how.

What i have tried, and got 'working' is compiling the vb.net program to a
tlb file, by clicking on the 'interop' checkbox under the projects 'build'
properties. This works fine, as i can now add a reference in Ms Access to
this tlb file, and create and show a new instance of my form in the vba
code.

The problem with this is that this program is going to be needed to run on
other machines. When i copy over the ms access files, and run them, all goes
well until i try to initiate and show my vb.net form. The error message is:
'ActiveX component cannot create object.'. Which to me says that the activeX
class isn't registered properly in the registry with a clsID etc.

I have tried various methods to get round this, including tlbExp.exe and
regasm.exe but neither have seemed to work. Could you please elaborate on
the way in which this CLSID stuff works, and subsequently why my problem
exists?

regards.


 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      5th Apr 2004
On 2004-04-05, Dave <(E-Mail Removed)> wrote:
> Due to limitations in Ms Access, I have created a form in vb.net with
> various buttons etc. Once all this is said and done, all i want to do is to
> have this form fired up in ms access some how.
>
> What i have tried, and got 'working' is compiling the vb.net program to a
> tlb file, by clicking on the 'interop' checkbox under the projects 'build'
> properties. This works fine, as i can now add a reference in Ms Access to
> this tlb file, and create and show a new instance of my form in the vba
> code.
>
> The problem with this is that this program is going to be needed to run on
> other machines. When i copy over the ms access files, and run them, all goes
> well until i try to initiate and show my vb.net form. The error message is:
> 'ActiveX component cannot create object.'. Which to me says that the activeX
> class isn't registered properly in the registry with a clsID etc.
>
> I have tried various methods to get round this, including tlbExp.exe and
> regasm.exe but neither have seemed to work. Could you please elaborate on
> the way in which this CLSID stuff works, and subsequently why my problem
> exists?
>
> regards.


Is the .NET runtime installed on the other machine?

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
"Pascal is Pascal is Pascal is dog meat."
-- M. Devine and P. Larson, Computer Science 340
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create an ActiveX in C# using other ActiveX created in VC++ =?Utf-8?B?TW9uaWth?= Microsoft Dot NET Framework 0 13th Jul 2007 06:54 AM
publish activeX combobox and other activeX control =?Utf-8?B?aXJlbmUgYw==?= Microsoft Excel Programming 0 19th Mar 2007 07:19 AM
activex settings prohibit running ActiveX controls Bob Hartung Windows XP Help 3 21st Jul 2005 05:49 AM
Q for Steve Lebans: RTF editing: To ActiveX or not to ActiveX? =?Utf-8?B?QnJhaW5sb3JkIE1lc29tb3JwaA==?= Microsoft Access Form Coding 1 19th Apr 2004 09:38 PM
activex in activex event handling S.Kartikeyan Microsoft C# .NET 2 26th Dec 2003 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 PM.