It's possible that you are trying to create an instance of a class (an object) from a class that is present on the machines you tested it on, but not on the machine it's been deployed to..... for example, I happen to know that I can make a VB program utilize a class for Nero Burning Rom.... I can make a nero object, and use it's methods and properties...... but that will only work on machines that have the Nero libraries installed. If it's not installed, when you try to make the object (either through early or late bindings with new or createobject), the variable that SHOULD refer to the object is still set to Nothing, because the library failed to create an instance of the requested class.....
Basically, you are trying to make an object from a class that doesn't exist on the NT box.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
in vb ide build an exe file
get a dependency walker and check which dependencies are needed for your exe file
create those dependencies on youre target machine
OR
get a setup (e.g. setupfactory) tool that builds a setup which does this for you
it can make a cabin file on development machine
that you can deploy on your target machine
PVBert
Junior Poster in Training
61 posts since Mar 2007
Reputation Points: 10
Solved Threads: 5
abisek_cts,
In the future please create your own thread and if you need to, copy the older threads url that you want to reference into your post.
Also please use code tags when submitting code. [ code ]your code goes here[ /code ] (without spaces as shown)
Now, I think you need to switch these two lines...
AcroExchApp.GetActiveDoc
Set AcroExchApp = CreateObject("AcroExch.App")
to
Set AcroExchApp = CreateObject("AcroExch.App")
AcroExchApp.GetActiveDoc
because you have not create the object yet and are trying to give it a command.
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
i try and use a simpler approach like
set = new
dspnhn
Junior Poster in Training
90 posts since May 2008
Reputation Points: 20
Solved Threads: 13
Guys, ladies and so on, please note that this thread was started 2 years ago. I'm sure that the OP has found a solution by now, please do not raise the dead.;)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
Which is why I gave you some reputation points.:)
I agree, its irritating getting to a post with no solution, so thanks for the extra help.
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350