[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.net Document Viewer Control

Posted on 2008-06-19
12
Medium Priority
?
655 Views
Last Modified: 2013-11-26
Need a control to put on a VB.net form that will allow viewing of various types of documents including Word, Excel, .txt and .pdf
We want this to be read only, and do not want to invoke the associated app

EXACTLY the same question as previously asked on this site (but not bothered about the SQL part), but 9 years later..
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Controls/Q_10226625.html
original answers no longer exist!

thanks

Mark
0
Comment
Question by:MarkPerry38
  • 5
  • 2
  • 2
  • +2
12 Comments
 
LVL 16

Expert Comment

by:SQL_SERVER_DBA
ID: 21823773
use the reportviewer
0
 

Author Comment

by:MarkPerry38
ID: 21824028
but I want to view doc files etc, not sql reports?  
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 21824281
maybe the WebBrowser control (but for sure the associated application will be started in the background).
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:MarkPerry38
ID: 21824576
thanks emoreau but no, we can't use the WebBrowser control (we are using it now but need to change!) for the very reason you give, and ALSO you can't use the WebBrowser in ReadOnly mode, it locks any documents you are viewing so no-one else can see them
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 21824974
I don't know any other Universal reader then
0
 
LVL 48

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 21840395
I doubt very much there is a control that can open each of your files independently of it's associated associated app. There's a reason why the associated app is opened - that's what's used to read the files. Each file is different, and requires different methods for viewing.

Wayne
0
 
LVL 48

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 21840398
What's wrong with the associated app opening anyway?
0
 

Author Comment

by:MarkPerry38
ID: 21844703
Wayne, we just want a small viewer pane in our application that gives a preview of a selected document, in a folder of docs that needs the user's attention.  The docs can be many types.  If the associated app opens the doc, it's very slow and user has to keep closing apps till he finds the doc he's interested in.  We also lose focus from our app.

We are 70% there using the WebBrowser control, apart from the problems I described in the first place.
As I said, a couple of controls were mentioned in the post I found from 9 years ago, but of course these don't exist any more!

There are apps such as QuickView that do the job, but I don't think it's available as a control to put on a form, which is what we want.

Msrk
0
 
LVL 2

Accepted Solution

by:
auyuksel earned 500 total points
ID: 21872814
Hi, you can use stellent, lets say oracle's stellent because oracle bought them on 2006, outside in technology library. it is the best for developer that I know, supports various kind of document types and easy to use.
0
 

Author Closing Comment

by:MarkPerry38
ID: 31468848
thanks, looks perfect
0
 

Author Comment

by:MarkPerry38
ID: 21882865
thanks auyuksel, that looks just the job. you're right, easy to use.  Even though it claims to be a VB5 and C++ solution, the activeX drops on .net forms no problem.
0
 
LVL 2

Expert Comment

by:auyuksel
ID: 21882991
You are welcome Mark. You can use it in .net by focusing on SCCWrap.SCCWindow   methods.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

872 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