Solved

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

Posted on 2006-07-08
9
775 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 500 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
Technology Partners: 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

Technology Partners: 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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

739 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