Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I need to Access a printer which is connected to the client computer from my web application. Technology :MVC3, language: C#.
We have bills which has to be printed directly while creating it. It is created using crystal report. I know it's against security to access a client side printer. But we did that in IE using an ActiveX. The problem is with the Chrome Browser. It is not supporting it.
Do any one have any solutions or any other suggestions.. or Is there any way to open IE browser popup window from a Chrome Browser(We are using a lot of jQuery which is not supported with IE.So we set Chrome as our default browser.)so that we can use that ActiveX from IE.

Can any one help me..please...it's urgent.. Thank you..
Posted
Updated 22-May-12 20:31pm
v3
Comments
Sebastian T Xavier 23-May-12 3:16am    
will window.print() work?
pufo 23-May-12 4:45am    
Thanks for the response sebastian. But it didn't worked. :(
pufo 23-May-12 5:20am    
Do any one know why this activeX object which is working fine with IE7,8,9 is not supporting by Chrome.? This is really annoying..

1 solution

Simply open a popup with the content that needs to be printed, and like Sebastian T Xavier said, just do a javascipt windows.print().

You could also use IETab.
http://www.ietab.net/[^]

I have no idea if it supports per-site activex, but if it doesn't... don't even go there!
http://msdn.microsoft.com/en-us/library/dd433050%28v=vs.85%29.aspx[^]

As you already mentioned it is a security hazard and an accident waiting to happen. Even if it isn't about security it will be about providing constant support for this kind of patches that can break at any time.

Good luck!
 
Share this answer
 
v2
Comments
pufo 23-May-12 5:05am    
Thank you for your support E.F.

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