473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

tlb file problem "Active X component can't create object" when used in vba routine

I created a dll for com (in vb.net 2005) so that I could access it's
functions from an ms access app. I created the tlb file successfully. On my
dev machine I referenced it in my access app and wrote the code that uses
one of the functions. Everything ran just fine. No hiccups. The code
performed the calculation as expected. Today I went to install this on a
client workstation. I copied the tlb file into the same folder that the
access adp file sits in. I was able to set the reference without any
trouble. I was also able to use intellisense to redo some of the code taht
uses one fo the functions. But when I ran the code I got error 429 "Active
X component can't create object"

Dim dHeight As Double
Dim oHeight As New DlnpFntCalcsForCom.DlnpFntCalcsForCom

Me.NoticeTextHeight = oHeight.NoticeTextHeight(Me.FullNoticeText,
sClipFontName, dClipFontSize, dClipWidth)
Me.FolioCount = Ceiling(Me.NoticeTextHeight / 1.5) 'Ceiling is a UDF in
my app

The error occurs on line 3 in the code above.

I tried solving the problem by copying all the files in my bin/release
folder of my (dll, tlb, xml, ppb) but that didn't work either.

I read something about not having to register tlb files on the local machine
so I have not done that and found little that suggested I should or even
how. I also read something about being sure that the office app that
references the tlb file should be the same version as the one on the dev
machine. Both are running office 03 so that should not be a problem. And
lastly I found some notes from someone that suggested that the .net
framework needs to be on the workstation but followups implied that was not
necessary and it seems like nonsense to me anyway.

Does anyone have any ideas on this. I'm a bit under a crunch with this now
and need to get it working in the next 18 hours. I sure hope someone has
seen this before and knows what I need to do.

If this is more suited to the access/formscoding newsgroup, let me know. It
might be but I'm not sure. If I have to cross post over there to get this
figured out fast I will. I'm in a hurry (please don't remind me not to cross
post, I know it's frowned upon). Lots of people in the Access newsgroup
could be unlikely to look around in here.

Thanks,

Keith

Sep 2 '08 #1
3 3886
Just FYI, since this has no answers yet I moved it to
"microsoft.public.access.formscoding"

ALthough it has occurred to me that I should probably try to create an
installation package for the tlb file. Not sure if that will help or not.

"Keith G Hicks" <kr*@comcast.netwrote in message
news:#8**************@TK2MSFTNGP05.phx.gbl...
I created a dll for com (in vb.net 2005) so that I could access it's
functions from an ms access app. I created the tlb file successfully. On
my
dev machine I referenced it in my access app and wrote the code that uses
one of the functions. Everything ran just fine. No hiccups. The code
performed the calculation as expected. Today I went to install this on a
client workstation. I copied the tlb file into the same folder that the
access adp file sits in. I was able to set the reference without any
trouble. I was also able to use intellisense to redo some of the code taht
uses one fo the functions. But when I ran the code I got error 429
"Active
X component can't create object"

Dim dHeight As Double
Dim oHeight As New DlnpFntCalcsForCom.DlnpFntCalcsForCom

Me.NoticeTextHeight = oHeight.NoticeTextHeight(Me.FullNoticeText,
sClipFontName, dClipFontSize, dClipWidth)
Me.FolioCount = Ceiling(Me.NoticeTextHeight / 1.5) 'Ceiling is a UDF
in
my app

The error occurs on line 3 in the code above.

I tried solving the problem by copying all the files in my bin/release
folder of my (dll, tlb, xml, ppb) but that didn't work either.

I read something about not having to register tlb files on the local
machine
so I have not done that and found little that suggested I should or even
how. I also read something about being sure that the office app that
references the tlb file should be the same version as the one on the dev
machine. Both are running office 03 so that should not be a problem. And
lastly I found some notes from someone that suggested that the .net
framework needs to be on the workstation but followups implied that was
not
necessary and it seems like nonsense to me anyway.

Does anyone have any ideas on this. I'm a bit under a crunch with this now
and need to get it working in the next 18 hours. I sure hope someone has
seen this before and knows what I need to do.

If this is more suited to the access/formscoding newsgroup, let me know.
It
might be but I'm not sure. If I have to cross post over there to get this
figured out fast I will. I'm in a hurry (please don't remind me not to
cross
post, I know it's frowned upon). Lots of people in the Access newsgroup
could be unlikely to look around in here.

Thanks,

Keith



Sep 3 '08 #2
And what did you do with the dll ?

As the TLB is only the type library , it will give you all information
about the object and even intellisense , but it isn`t the complete
functional object
i guess you did`t install or register the dll to the target machine , also
do not forget to register this component with Regasm.exe and NOT with
regsvr32.exe

HTH

Michel

"Keith G Hicks" <kr*@comcast.netschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
>I created a dll for com (in vb.net 2005) so that I could access it's
functions from an ms access app. I created the tlb file successfully. On
my
dev machine I referenced it in my access app and wrote the code that uses
one of the functions. Everything ran just fine. No hiccups. The code
performed the calculation as expected. Today I went to install this on a
client workstation. I copied the tlb file into the same folder that the
access adp file sits in. I was able to set the reference without any
trouble. I was also able to use intellisense to redo some of the code taht
uses one fo the functions. But when I ran the code I got error 429
"Active
X component can't create object"

Dim dHeight As Double
Dim oHeight As New DlnpFntCalcsForCom.DlnpFntCalcsForCom

Me.NoticeTextHeight = oHeight.NoticeTextHeight(Me.FullNoticeText,
sClipFontName, dClipFontSize, dClipWidth)
Me.FolioCount = Ceiling(Me.NoticeTextHeight / 1.5) 'Ceiling is a UDF in
my app

The error occurs on line 3 in the code above.

I tried solving the problem by copying all the files in my bin/release
folder of my (dll, tlb, xml, ppb) but that didn't work either.

I read something about not having to register tlb files on the local
machine
so I have not done that and found little that suggested I should or even
how. I also read something about being sure that the office app that
references the tlb file should be the same version as the one on the dev
machine. Both are running office 03 so that should not be a problem. And
lastly I found some notes from someone that suggested that the .net
framework needs to be on the workstation but followups implied that was
not
necessary and it seems like nonsense to me anyway.

Does anyone have any ideas on this. I'm a bit under a crunch with this now
and need to get it working in the next 18 hours. I sure hope someone has
seen this before and knows what I need to do.

If this is more suited to the access/formscoding newsgroup, let me know.
It
might be but I'm not sure. If I have to cross post over there to get this
figured out fast I will. I'm in a hurry (please don't remind me not to
cross
post, I know it's frowned upon). Lots of people in the Access newsgroup
could be unlikely to look around in here.

Thanks,

Keith



Sep 5 '08 #3
I somehow thought when I started this that all I needed to do was to include
the tlb file in the same folder as my adp file and then reference it. Found
out that was not even close. I then thought that I could register the files
on the server and reference them from the workstations. That didn't work
either. I ended up putting the dll on the workstation and registiering
(using regasm.exe) on each workstation. That did it. I was trying to avoid
having to install anything else on the workstations but I guess that was a
pipedream! :-) Thanks for your input. Confirms what I ended up figuring out
on my own.

Keith

"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:Oi**************@TK2MSFTNGP06.phx.gbl...
And what did you do with the dll ?

As the TLB is only the type library , it will give you all information
about the object and even intellisense , but it isn`t the complete
functional object
i guess you did`t install or register the dll to the target machine , also
do not forget to register this component with Regasm.exe and NOT with
regsvr32.exe

HTH

Michel

"Keith G Hicks" <kr*@comcast.netschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
I created a dll for com (in vb.net 2005) so that I could access it's
functions from an ms access app. I created the tlb file successfully. On
my
dev machine I referenced it in my access app and wrote the code that
uses
one of the functions. Everything ran just fine. No hiccups. The code
performed the calculation as expected. Today I went to install this on a
client workstation. I copied the tlb file into the same folder that the
access adp file sits in. I was able to set the reference without any
trouble. I was also able to use intellisense to redo some of the code
taht
uses one fo the functions. But when I ran the code I got error 429
"Active
X component can't create object"

Dim dHeight As Double
Dim oHeight As New DlnpFntCalcsForCom.DlnpFntCalcsForCom

Me.NoticeTextHeight = oHeight.NoticeTextHeight(Me.FullNoticeText,
sClipFontName, dClipFontSize, dClipWidth)
Me.FolioCount = Ceiling(Me.NoticeTextHeight / 1.5) 'Ceiling is a UDF
in
my app

The error occurs on line 3 in the code above.

I tried solving the problem by copying all the files in my bin/release
folder of my (dll, tlb, xml, ppb) but that didn't work either.

I read something about not having to register tlb files on the local
machine
so I have not done that and found little that suggested I should or even
how. I also read something about being sure that the office app that
references the tlb file should be the same version as the one on the dev
machine. Both are running office 03 so that should not be a problem. And
lastly I found some notes from someone that suggested that the .net
framework needs to be on the workstation but followups implied that was
not
necessary and it seems like nonsense to me anyway.

Does anyone have any ideas on this. I'm a bit under a crunch with this
now
and need to get it working in the next 18 hours. I sure hope someone has
seen this before and knows what I need to do.

If this is more suited to the access/formscoding newsgroup, let me know.
It
might be but I'm not sure. If I have to cross post over there to get
this
figured out fast I will. I'm in a hurry (please don't remind me not to
cross
post, I know it's frowned upon). Lots of people in the Access newsgroup
could be unlikely to look around in here.

Thanks,

Keith



Sep 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert | last post by:
I just tried to convert a (hugh size) ftp.retrbinary run into a pseudo-file object with .read(bytes) method in order to not consume 500MB on a copy operation. First I thought, its easy as usual...
0
by: travis ray | last post by:
Hi, I have an extension in which a file object is created in python and passed down to a c extension which attempts to read from it or write to it. Writing to the file pointer seems to work...
23
by: Utada P.W. SIU | last post by:
Hi All, Do you know where have free/buy a upload file component? I need allow user to select the folder instead of select file one by one thanks~~
2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
11
by: Florian Loitsch | last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo, automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a question concerning the function-parameters: According to...
1
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
4
by: British | last post by:
This file is suppose to display "Welcome to the Zone!" and also write it to a text file instead i get an runtime error 0x800A0046 Permission Denied The Script: <html> <title>File Object</title>...
7
by: Michael Castleton | last post by:
When I open a csv or txt file with: infile = open(sys.argv,'rb').readlines() or infile = open(sys.argv,'rb').read() and then look at the first few lines of the file there is a carriage return...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.