Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

You have to install HtmlPrinter on your Win7 computer also!
 
Share this answer
 
Comments
bencynisida 25-May-12 7:27am    
Hai Hiller

Thank You for Your answer

I installed win 7 also..

the same error coming..
Bernhard Hiller 29-Jun-12 4:07am    
You still do not understand how things work.
"Interop.DHTMLEDLib" etc. are wrappers: they are used by a .Net application to communicate with the underlying COM component. They do NOT at all replace the COM component!
Without the underlying COM component being installed (and registered - which is normally done during installation), your code will fail with that error message.
It is the COM component which you must install on the computer, it is not sufficient to copy the "Interop.DHTMLEDLib" files, and it is also not sufficient to copy the files of the COM component.
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
 
Share this answer
 
hi guys,

CSS
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.
I also post the same feeback as below.

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900