473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Known File-types Previewer

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

Oct 30 '06 #1
2 1296
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

Andrea Anastasescu wrote:
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
Oct 30 '06 #2
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
"Andy" <an***@med-associates.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
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

Andrea Anastasescu wrote:
>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

Oct 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler...
1
by: Tat | last post by:
Hello, I have an error handling routine in Win app. If there is an error, the app throws an exception and writes it to the text file all info about the error so the app can send it to tech. If...
3
by: Bret Thompson | last post by:
I am attempting to write an ASP page that will download a file rather then open it, when it is of known type. I found this code here: http://mosley.arach.net.au/dev/docs/save%20as.htm The first...
23
by: da Vinci | last post by:
Greetings, Onwards with the school studying. Working on a program and need to delete a file from a known location on the hard drive but cannot get anything I do to work. I have tried to use...
0
by: mizi | last post by:
I am writing an ASP page for downloading some files, such as jpg, doc which are known MIME type. I want to force user save these files through a "file download" dialog instead of open them on the...
2
by: TCR | last post by:
Hi, I posted this earlier and got a suggestion that didn't pan out. I am trying to determine if there is a known bug related to the resolution value returned when opening a .jpg file by passing...
2
by: Laszlo Nagy | last post by:
Hello, I asked this question about a week ago, but I did not provide a traceback. Here is the traceback: File "/usr/local/lib/python2.4/xmlrpclib.py", line 1096, in __call__ return...
2
by: flamesrock | last post by:
Hi, Basically, I'm trying to send a multipart form to a server using some code from aspn.. here it is: MultipartPostHandler: http://pastie.caboo.se/29833 import MultipartPostHandler, urllib2,...
5
by: Jameson | last post by:
Hi, I have a list of known colours, generated using: Dim colorNames As New System.Collections.Generic.List(Of String) For Each known As KnownColor In .GetValues(GetType(KnownColor)) Dim...
7
by: musther | last post by:
I have a set of calculators written in JS on a page: http://www.slymail.org/vinocalc.html The page is designed to be downloaded and used offline, or simply saved as a file for speed of access and...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.