Solved

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

Posted on 2006-07-08
9
766 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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now