Solved

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

Posted on 2006-07-08
9
768 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
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

831 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