What's the reason you want to use the ActiveX viewer in .NET app, is it client printing (in a web application)? If you don't want to print from the browser, then exporting to PDF can be a solution.
Hi LV!
Yes, it is client printing. And I know it can exporting to PDF to print. But I want directly print from the browser and not depend on any software in the client computer.
If you know how to used activex in .net app, please tell me.
Well, the ActiveX viewer has to be installed on the client so you are still going to be dependent on it; a lot of computers though have Adobe installed on them so PDF export might work better. I haven't tried to wrap .NET codebehind around the Crystal ActiveX Viewer or CRAXDRT, sounds like pain. Much easier solution would probably be just to include all needed ASP pages (rptserver.asp, SmartViewerActiveX.asp, etc.) into your .NET app.
But I know somebody can set to the COM objects CRViewerLib and CRAXDRT on the Tab (Crystal Report Viewer Version 8.0 and Crystal Report 8 ActiveX Design Time Library).
Then we could add the ActiveX control to toolbox in the WebForm and dragged it into the webform design mode.
So I hope who know the method and coding could tell me.
Yes, it is possible, you can wrap around CRAXDRT. But then you'll need to rewrite rptserver.asp in C# or VB.NET, whichever language you use. This might be a little complicated though.
I haven't done it myself so can't really help you with rewriting, although one again, it sounds like a big pain. You can include references to the COM objects in .NET by right-clicking on "References" (under Project), Add Reference...COM tab. If client printing is the only reason you're going to do this... Maybe it's worth looking at exporting reports to PDF. Good luck anyways!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.