>I tried the following only to get the "error '463' Class not registered on local machine" I regserv32 uninstalled the dll and reinstalled it... MetaFile is the class name that shows up when i use the project/reference -> Object method. How can I find out what it wants as the class name. Any ideas?
>
>
> Dim objBlankForm As Object
> Set objBlankForm = CreateObject("MetaFile", "C:\xe\bform1999.dll")
>
Reference your component, and declare explicitly your object as Metafile.????.
This MetaFile.??? is exactly what you need to paste in your CreateObject statement.
And by the way, your second parameter is invalid. Put nothing there. The registry will tell which DLL to launch.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com