来自hresult:0x80040154的类未注册异常 [英] class not registered exception from hresult:0x80040154

查看:127
本文介绍了来自hresult:0x80040154的类未注册异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在视觉stdio2005中开发了一个项目,在这个项目中,我使用htmlprinter来打印文档.使用诸如Interop.SHDocVw,Interop.DHTMLEDLib,HtmlPrinter之类的dll,它在Windows XP中运行良好.如果我将在Windows 7中运行,则会出现错误,例如类未从hresult:0x80040154 注册异常.

我更改了也无法正常工作的目标计算机x86

请帮帮我..

如何解决这个问题

repley asap ..


谢谢与问候

T.Bency Arulmozhi Nisida

Hai

I developed project in visual stdio2005, in this project i used htmlprinter for print a document. using some dlls like Interop.SHDocVw,Interop.DHTMLEDLib, HtmlPrinter, its run well in windows XP. If i will run in windows 7 that make error like class not registered exception from hresult:0x80040154.

I changed target machine x86 that also didnt work

Please help me..

How to solve this problem

repley asap..


Thanks and Regards

T.Bency Arulmozhi Nisida

推荐答案

您还必须在Win7计算机上安装HtmlPrinter!
You have to install HtmlPrinter on your Win7 computer also!


Hai

直到我没有解决这个错误..

我用了这些代码

HtmlPrinter.HtmlPrinter hpObj =新的HtmlPrinter.HtmlPrinter();
hpObj.PrintHtml(strvalue,true);

如何解决tat错误..

谢谢先进
Hai

Till i didnt slove this errror..

i used these code

HtmlPrinter.HtmlPrinter hpObj = new HtmlPrinter.HtmlPrinter();
hpObj.PrintHtml(strvalue, true);

How to solve tat error..

Advanced in thanks


大家好,

hi guys,

I tried uncheck the two checkbox as below:
 1.    Debug menu ->  Exceptions… -> Common Language Runtime Exceptions: User-unhandled item
2.    Debug menu ->  Exceptions… -> Managed Debugging Assistants:  Thrown item


But these doesn't work....any more advise.

我还发布了与以下相同的费用返还.

http://social.msdn.microsoft.com /Forums/zh-CN/vbinterop/thread/9d174de2-feaf-4826-992b-d453d89965ca/ [

I also post the same feeback as below.

http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/9d174de2-feaf-4826-992b-d453d89965ca/[^]


这篇关于来自hresult:0x80040154的类未注册异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆