AcitveX equivalent in C# ?
-
Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)
R.Bischoff .NET, Kommst du mit?
-
Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)
R.Bischoff .NET, Kommst du mit?
See an old tutorial of mine, User Control for Windows and the Web[^]. You can find additional information in the .NET Framework SDK by reading Deploying Runtime Applications using Internet Explorer[^], though my tutorial covers most of this.
Microsoft MVP, Visual C# My Articles
-
Hello, I am trying to figure out a solution for hosting an application in IE, but runs on the client machine (to access printer configuration). I want to use C#, b/c the client has the .NET runtime, otherwise the answer would be, develop an ActiveX control (ATL). Does anyone know how to write a C# app (winform) that is hosted in Internet Explorer? For example, the user browses to http://someserver/somepage.aspx , which then downloads the C# app, and is hosted in IE. The app then has control to access printers on the local machine and local network (the same way windows does) Thanks. ;)
R.Bischoff .NET, Kommst du mit?
This addresses my question http://www.15seconds.com/issue/030610.htm[^]
R.Bischoff .NET, Kommst du mit?
-
See an old tutorial of mine, User Control for Windows and the Web[^]. You can find additional information in the .NET Framework SDK by reading Deploying Runtime Applications using Internet Explorer[^], though my tutorial covers most of this.
Microsoft MVP, Visual C# My Articles
Thanks for your helpful information. How would you access the PrintDialog control from the control you are hosting in IE ? Thanks.
R.Bischoff .NET, Kommst du mit?
-
Thanks for your helpful information. How would you access the PrintDialog control from the control you are hosting in IE ? Thanks.
R.Bischoff .NET, Kommst du mit?
Same as you would using any other form. It's just a control. If you're trying to access the print dialog for IE, that's not so simple and involves dispatch interfaces and client-side scripting. You must also have the right code access permissions, which are documented in the class documentation for the classes you want to use. My article does discuss code access security a little, so you need to author your control with this in mind. You shouldn't just assume you'll have FullTrust permissions - that's poor design.
Microsoft MVP, Visual C# My Articles