Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Known File-types Previewer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrea Anastasescu - 30 Oct 2006 15:52 GMT
Hi there,

I have to integrate a previewer into a desktop application, that retains
some links to resources (local files, internet-links, personal mails - this
is not of certain concern).
This window should be able to give a preview of the document: be it an
office (word, excel), an image file etc.
Is there a convenient mode for this in .NET applications?
The preview should be done in the application's window, it is not acceptable
to open the file outside the process (like:
System.Diagnostics.Process.Start( file_path ); that is based on shell
associations)
I am trying to use a webbrowser control, but i wanted to know your opinion
on this, and wether there may be another solution than trying to show all
documents inside a web-browser.
(There is still a problem like that in the attached image   - certainly I
can not modify settings on the users's computer - but I will try to find a
workaround).

Thanks,
Andrea
Andy - 30 Oct 2006 18:43 GMT
Your application can host the ActiveX control which will display the
preview.   This is what the webbrowser does anyway.. loads an ActiveX
viewer control.  your applciation though will have to know a head of
time what applications it can use to preview, and those apps will have
to be installed already.

HTH
Andy

> Hi there,
>
[quoted text clipped - 17 lines]
> Thanks,
> Andrea
Andrea Anastasescu - 31 Oct 2006 08:04 GMT
Hi,

Well, I presume that the user has a version of Office, for example, but I
actually don't know which version.
I would be interested to know how is the webbrowser handling this.
I think that I can use the file-type associations to learn the type of
aplication that is tied to a file type but what to do next? How to use that
application, or what ActiveX to use to show the content of the file.
For the first step, let just look at Office files

Thanks,
Andrea
> Your application can host the ActiveX control which will display the
> preview.   This is what the webbrowser does anyway.. loads an ActiveX
[quoted text clipped - 30 lines]
>> Thanks,
>> Andrea

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.