Solved

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

Posted on 2006-07-08
9
769 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System.Security 2 28
Wav problem 4 28
In C# Using WebClient method how to post certificate from file with password 3 49
InputLanguage 1 33
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 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