Error 0x80040154 when printing  
Author Message
Max André Bündchen





PostPosted: Visual FoxPro General, Error 0x80040154 when printing Top

From night to day some machines gives the error 0x80040154 when printing reports in a VFP 7 solution (there's about 50 workstation and 4 with that problem).

When the user try to print he takes a error message: "OLE error code 0x80040154: Class not registered" in any report (even simple reports just with a bmp and some comom controls like labels). The printed result is a blank paper.

I try to reinstall the VFP 7 runtime on this client but not happened. There's no ActiveX on this reports.

Please, someone could help me



Visual FoxPro1  
 
 
CetinBasoz





PostPosted: Visual FoxPro General, Error 0x80040154 when printing Top

Might it be , the BMPs are not external files but coming from general fields (and not all of them are really BMP) Then I'd expect such an error. I don't think someone would use general fields but who knows.
 
 
SvenC





PostPosted: Visual FoxPro General, Error 0x80040154 when printing Top

Hi Max,

try regmon from www.sysinternals.com to check which CLSID cannot be found. They should be reported under HKEY_CLASSES_ROOT\CLSID\{the-class-id-in-hex-code}. See if the missing CLSID entries are available on the machines where printing works.

Normally you should find InprocServer32 or LocalServer32 entries beneath a CSLID pointing to the executable which implements that class. Maybe the registry keys are incorrect or maybe some files are missing.

If you could find CLSIDs on the working machines which are not or only partially existing on the problematic machines, look up the path of the dlls or ocxs files. Check if they exist on the problematic machines. If yes, open them with RegSvr32.exe (lives in windows\system32).

--
SvenC


 
 
dni





PostPosted: Visual FoxPro General, Error 0x80040154 when printing Top

You may check this:

http://support.microsoft.com/kb/149259 and if you don'have installed yet, update with service pack 1.