Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.NET plug-in for IE Browser like Adobe PDF Reader or Alternatiff Tiff Viewer

Posted on 2006-07-08
9
Medium Priority
?
787 Views
Last Modified: 2012-05-05
Hello Experts,

I want to create a plug-in for internet explorer in c# .net just like Adobe PDF Reader, Microsoft Office Documents or Alternatiff Tiff Viewer.

When a user types in http://www.someurl.com/somefile.pdf, IE detects it and spawns Adobe Reader and views the file. Another example is http://www.someurl.com/somefile.doc, internet explorer detects to spawn Microsoft Word inside IE.

Now, I want to create an application similar to these examples. If a user types in http://www.someurl.com/somefile.myx ('myx' will be my own file extension), it will spawn my .NET application and view the .myx file.

I'm wondering if this is possible with .NET and where can i get information on how to do such application. Thanks in advance!

0
Comment
Question by:AlphaGuys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 11

Expert Comment

by:vo1d
ID: 17067738
that has nothing todo with net.
it is a registry information for file extensiion -> application.
so if you wanna have that behavior, your app has to be 'installed' on that machine.
0
 
LVL 11

Accepted Solution

by:
vo1d earned 1500 total points
ID: 17067741
for more information about the regkey, take a look at this post:
http://www.experts-exchange.com/Operating_Systems/WinNT/WinNT_Setup/Q_20531178.html
0
 

Author Comment

by:AlphaGuys
ID: 17074979
Thanks vo1d for the reply, that information helps a lot except for 1 more thing, i wanted my application to run inside IE instead of opening it outside. When i look at windows explorer's tools->folder options->file types-> and select "DOC" file type and hit the Advanced button, there's a checkbox "browse in same window". It's the same thing for other office file types and PDF file, But on my own file type, this checkbox is disabled. How can i automatically host my application inside IE once a user navigates to my custom filetype? Thanks again
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:vo1d
ID: 17075252
adobe and microsft do that by creating an activex component.
in .net, you will have to make a control of your app and implement it like an applet.
a description for that can be found here:
http://www.15seconds.com/issue/030610.htm
0
 

Author Comment

by:AlphaGuys
ID: 17076397
vo1d,

I know this can be done using object tags inside html, the problem is there is no source html. It will be straight forward as typing the URL http://www.someurl.com/yourfiletoview.myx and automatically my application will be hosted inside IE like an activex control and view the file. I've been messing around with the registry like what you suggested and I can associate a file but i'd like the app to be inside IE. I guess what i'm trying to do is more of an ActiveX viewer/player that is written in C# and runs fullscreen inside IE. Thanks again for your help!
0
 
LVL 11

Expert Comment

by:vo1d
ID: 17076696
activex is not really supported by microsoft for the net framework, but there are some workarounds out there.
one can be found here:
http://www.codeproject.com/cs/miscctrl/exposingdotnetcontrols.asp
so i think, make an activex of your control and setup that regkey for your filetype.
0
 

Author Comment

by:AlphaGuys
ID: 17102455
Another thing i can think of is create a c# usercontrol and wrap it with MFC activex? is this possible?
0
 
LVL 11

Expert Comment

by:vo1d
ID: 17103431
if you implement a com interface and register it as com object via its typelib it could be possible, havent tried it yet.
but why dont you make the whole control in mfc?
0
 

Author Comment

by:AlphaGuys
ID: 17103683
I'm thinking of going that direction. I just need some time to learn c++/MFC. Thanks again for your suggestions.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question