.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Office document viewer in Winforms

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :Windows Application

Hi everyone,

I want to open and display office document (word, excel and ppt) in a control in a Winforms.

With PIA, I manage to open a document in a new window. But, I want this windows embedded in my winforms application.

Any ideas?



View Complete Post

More Related Resource Links

Office Development: Manage Metadata with Document Information Panels


Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.

Ashish Ghoda

MSDN Magazine April 2008

Advanced Basics: Setting Word Document Properties the Office 2007 Way


The last time I wrote this column (March 2006), I shared an application that allows you to update all the Microsoft® Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.

Ken Getz

MSDN Magazine June 2006

Sharepoint 2007 Document Search and Highlight in Office 2007 and PDF


We will be implementing Document Search (DOC, DOCX, PDF, TIFF, PPT, PPTX, XLS, XLSX) for one of our customers. We were evaluating a few MOSS 2007 based solutions, and happened to visit your site.  What we intend to achieve are the following functionalities:


a.       User should be able to search through 1000s of documents which are in a Sharepoint Document Library

b.      The documents could be in English, International Languages.

c.       Each document is 70-100 pages, and therefore it is important that the Search Results show the relevant pages on which the Search Text appears (Get Highlighted) within each document . Clicking on the link will take the user to the right page.

d.      The additional requirement is Synonym search. So, I can search for

Document viewer on a documents Library & Tooltip Bubble on rollover

Hi everybody,
1 - I would like to know, if in Sharepoint 2007 ECM part (Documents Library), there's a downloadable webpart or an application to create a document viewer (pdf, doc, xls, msg...) in an iframe when you point the mousse over a document or something like that...
If it doesn't exist do you have in mind a code sample which can make something like that ? thank you.

2 - It's possible in a documents library to activate balloon tooltips which show us metas of the document (on mousse over), like an option or an application...

Thank you very much.
All the best.
Go I.T.

SharePoint makes Office Document custom fields unreadable


We're using WSS 3.0SP2 with a Document Library that has document-level columns (fields) added. The columns (fields) are defined as single-line text; nothing fancy. In SharePoint we can set the field values no problem. When we pull the documents back out of SharePoint to the file systsem, and look at the Custom Fields, the values are unreadable gibberish. They look like graphics lines and boxes and the Type is set to Unknown.

Any ideas why this is happening and how to fix it?

Updating a non MS Office document

Hi, We are using SP2007 My understanding that the only way to update a non Office file (eg .txt) without using My Network Places in a SharePoint document library is to do the following: check out the document save the document locally  upload the document as a new version check in the document Is this correct? If so ... if a user has full control on a given document but only read only access to the library it sits in, doesn't it mean they will not be able to update the document (without using My Network Places) as they don't have access to the libraries Upload option? We are trying to avoid using the My Network places due to using thousands of site collections across our organisation ie trying to find a specific library is hard to do and is a poor user experience.   Regards, Simon 

Office document are not opened correctly! (XLSX gives error. XLS asks login)

I have SharePoint 2010 based farm and MS Office 2007. SharePoint have Enterprise feature enabled. In my test I'm opening documents in the front-end machine. Problem 1: When XLSX excel documents are tried to be opened, it try to open to the browser. Error is given: Your request can not be handled. Please wait few minutes and try again.(free translation from local language) Because of error I started Excel services, but nothing changed. Problem 2: When XLS excel documeents are opened, it opens to the Office Excel client, but it request login. After login xls document is opened correctly. Why I need to login? Problem 3: When DOC word documeents are opened, it opens to the Office Word client, but it request login. After login doc document is opened correctly. Why I need to login?Kenny_I

Office 2010 can not integrate with Sharepoint Server 2010 document library, both RTM

Hi I have one standalone SharePoint Server 2010 and Office 2010 on Windows Server 2008 SP2. Both SharePoint and Office are RTM. When I create new document from the document library, it can open the Office Word.  When I save the document, Office gives me the local browser dialog other than remote sharepoint library. When I try to enter the sharepoint site url in the dialog, it tells me: path does not exist. On another machine, Windows 7, the Office 2010 RTM can open and save docs from/into the document library. There seems something wrong with the Office client. Maybe someone can tell me how to fix it. Thanks. Xiaofeng?????,?????@??/??/????+????+????+all the context of the issue Hope Helpful | http://www.leoworks.net

SharePoint 2010 Office Web Apps "Word Web App cannot open this document for viewing because of an un

<label id="message" class="WACStandardDialogLabel">I have provisioned a SharePoint 2010 Server (RTM: 14.0.4762.1000)  with Office Web Apps.</label> <label class="WACStandardDialogLabel">It is a single server with a separate SQl 2008 Standard server.</label> <label class="WACStandardDialogLabel">I have seen that there were some issues in site that were configured with a port.  The Web Application I am having issues with is running on a port  and is extended on 443 as well.</label> <label class="WACStandardDialogLabel">I can view PPTX but Word docx files can't be viewed.  The word docx files howerver can be edited in the browser.</label> <label class="WACStandardDialogLabel">I get the following error when I try to view a word file in the browser:</label> <label class="WACStandardDialogLabel"></label> "Word Web App cannot open this document for viewing because of an unexpected error. To view this document, open it in Microsoft Word. Error Id: 7f644fec-c2d7-4387-b280-31a4647afea1, 20100509213834 " I am seeing an error in the event log that identifies the Application Service account (that includes the Word Viewer Service) can't access the portal site collection database.  -I am using the appl

Opening office Documents in MOSS 2007 document Library.... You get a prompt to login...

*Sigh* i know i'm not the only one who has experienced this.   You have a Moss 2007 farm on your Server... yet you have employees and users who use Office 2003 products (word, excel, power point) Everything is installed correctly you yourself use office 2007. but don't post office 2007 docs.. just open the docs that people already post (2003 stuff) Computer Environment si am using....It does this in both Environments1st one Windows Vista Ultimate Updated Service Packs Office 2007 All update Serice Packs Internet explorer 7.0 2nd Environment Windows XP all updated Service Packs Office 2007 All updated Service Packs Windows Internet Explorer 7.0 Server Environment Moss 2007 with SP1 installed Microsoft 2003 Server No matter what happens.... when i try to open up a word documents or excel or anything.. when using office 2007..... it ask me for a login...I believe there was an article about correcting something in the registry or something.. can someone give me detail bulleted / bold instructions... this has been bothering me for a while.

"Document not Saved" in Excel 2007 - using Windows XP Pro and Office 2007 Pro

Hello folks,   I am having an issue with all of my Excel documents saving from the network drive.  Whether I open the document then "save as" 97- 2003 or just do a straight "save" it will always come up as "Document not saved".  I open some Word files and get a different error, "There has been a network or file permission error.  The network connection may be lost (the drive contents here)"  Now I am online and can do emails and open other documents from the network so I know my network connection is not lost.  I work right off the LAN and not wireless.   I did take the file in both Excel and Word and copy them to the local drive then try the open / save as and it will work great like that no problem.  Although this is a "work around" is there something I am missing?  Our corporation has many new machines running Windows XP Pro along with Office 2007 Pro and this was the first I had seen this problem with.  This is a laptop, but again others work fine ( that I know of)   Thanks, Mark

Read-Only mode is not working for office document-Bug

I have a excel file in the document library. In client PC I have office 2007. Suppose two users click on that excel file. A small window pops up to select mode(edit or read-only). User1 selects edit and user 2 selects read-only. user1 made some modificatin on the document. After that save and close the file. Now user2 click on save button he also can save the file. That means modification made by user1 is overridden by user2. So it should not happen. It's a Bug. If the user opening the document in Read-Only mode then save button should be in disable mode. If any one has any workaround. Please let me know.

Office 2007 Documents Open in Read-Only when Opening them from a WSS 2.0 Document Library

Hi, When any of our Windows 7 Pro computers that run Office 2007 Pro attempt to open a Word document that resides in a WSS 2.0 document library by using the drop down menu and selecting "Edit with MS Word", the documents open in read-only.  Our work-around is to save the document locally, modify it, and then save it back to the document library. We have some Windows XP and Vista systems that run Office 2007 and they are fine and can simply edit the document and save it.  We also have a handful of pc's that run Office 2003 and they are not having any issues either. Things I've tried: Office 2007 Repair - no luck Office Reinstall - no luck Some registry mod HKCU\Software\Microsoft\Office\12\Internet\OpenDocumentReadWrite=1 (noted on a MSKB article) - no luck and after re-reading the article it clearly states that this will not address content hosted on WSS or SPS sites Clearing IE temp files, resttting IE to defaults - no luck Once again, this only seems to happen to Win7Pro pc's that run Office 2007.  Honestly, I can't tell if IE8 has anything to do with this. Any thoughts or help would be extrememly appreciated. Thanks, Mike

Document is read-only in SharePoint, but user sees "check out" option in Office 2007 / Word / Excel

I am finding that when there is a document library in SharePoint with checkin/checkout required, if a user with read-only ("Visitor") permissions opens a document from that library, the document will open as read-only in Word, Excel, etc., but the user will see the "Server Document" bar with the message "To modify this document, you must check it out" and the "check out" button.  When the user tries to check the document out, they are asked to authenticate, and then receive the error "Cannot perform this operation.  The file has been deleted or someone else has it checked out."    How is it possible to prevent a user with read-only rights in SharePoint from seeing the "Check out" option in Word or Excel?

Windows 7, Office 2007, and WSS 3.0: Losing file path when saving to Document Library.

A client of ours recently purchased 5 desktops with Windows 7 and Office 2007.  They use Sharepoint to share all documents for their company. The computers that have Windows XP on them can browse the Sharepoint site, open documents (read only or edit), and chose to Save or Save As.  A new window pops open with their current file path of the Sharepoint Document Library so they can save the file in the same folder they opened it from.  I have tested this with Office 2003 and 2007 (Word and Excel) on XP and it always works. The 5 new desktops running Windows 7 cannot do this.  When a user opens a document by browsing to it from Internet Explorer and chooses to Save or Save As, they are kicked back to their last successful save point (usually My Documents or Desktop). The current work around is mapping a drive to the root Document Library directory and having them traverse through the folders to save it back in the original location. I've tried changing the Check Out save settings in Word 2007 and Excel 2007 to edit directly on the server, but I run into the same problem.  I've also made sure that IE sees the site as a Local Intranet site and Protected Mode is off. Any help would be appreciated.  Thanks in advance.

Open Office Documents from Document Library without Password Prompt

We have a SharePoint site and Document library set up for anonymous access.   All non-Microsoft file types open correctly without a password.   When users click on Microsoft Office documents they are prompted for passwords.   Is there some way to configure the Office documents or Document Library so that users are not prompted for passwords when they open documents or is this a bug?

document library item viewer

Hi all, How we can make a document library item viewer? More like the document viewer. I have several file extension in a document library: eml, doc, and tiff. I want to put the viewer in the search result page. so when a user click 1 row it will show the item preview, no matter the extension.Best regards, -- Pingkan --
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend