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

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

Why is the pdf file displayed as Word Doc?

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :SharePoint
hi there, My search results give the wrong file format of Word Doc on PDF file: Microsoft Word Doc http://server/siteABS/library/test.PDF ...... file://....test.pdf Why? Thanks in advance.    allan

View Complete Post

More Related Resource Links

Word save file on SharePoint via mapped drive


Hi, I have a Document Library mapped to a drive letter. I am able to browse the drive through Windows Explorer. However when I try to save a document to the drive Word returns, 'Unable to connect to the Web server.' .  I have been unable to find any information regarding this error message. If I try to create a document in the Document Library through Windows Explorer and the mapped drive, I get a different error message: 'Unable to create the file 'New Microsoft Office Word Document.docx' There is no user session key for the specified logon session.' After I click OKand refresh the directory, a 0 KB New Microsoft Word Document.docx file has been created. When that file is opened, it is in Read-Only mode.


Windows Server 2003 R2
Webclient service started
Signed into the Microsoft Online Services Sign in Application
IE configured through the sign in application
site added to the trusted sites in IE

Thank you again for your input.

Generating MS Word doc from mht file gives smart quote problem


I have a word document to be generated using ASP.Net/VB.net.

So I have a word document template saved as .mht file on the web server.

In my ASP.Net code,I read this mht file content and replace certain string line Description$$ with the actual description from the database.Then save this content as .doc file.

This works fine but shows a box symbol when I have smart quotes " (not this one as I cannot type it here.The double quote which you see in MS Word,the slanted double quote).

I dont know how to make my word doc generated, show the exact double quote as in MS word.

If any of you have any idea of this please reply.

Thank you

Sharepoint 2010 Enterprise - Word can not open file in sharepoint

Hi, In the library shared documents on my first teamsite i uploaded a word 2010 document. When i click on the document my Word starts up but i'm not able to open the document. i'm also getting the following error: could not open http://pcp/Shared Documents/cv.docx. When i upload a document via word (saving the document in the library via word) i can view it when i click on the document. But when i upload an existing document into the library i keep getting the error from above when i'm trying to open it.   Thanks TIM

Opening a MS Word File and setting the save location



I have an ASP intranet site which opens word documents from a shared network drive (link is stored in a DB).  When the user then goes to save the document, it points the user to their default location - say C:\myprofile\my documents.  How can i get it so that the user can just click on save and it saves it in the location it got the file from?  I am using the following code to grab the document:

Response.AddHeader("Content-disposition", "attachment; filename=" & docfilename)
Response.ContentType = "application/vnd.ms-word"

If i navigate through the network share manually through windows, open the document and click save - it will save it to the right location.


Error When a Word Document is displayed in WebBrowser Control



We are using a WebBrowser control to display an MS Word document in a form. This was working fine for a long time, and now we tried to install this application in a new server. Now we are facing an issue. When we try to open the word document by using WebBrowserControl.Navigate method, it is asking the Open/Save dialog box, which is typically displayed when we download a file. Then if the user clicks on Open button, we are getting an error "Windows cannot find 'UsersTempFolder\1\Temp\MyDoc.DOCX'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.". Please note that UsersTempFolder\1\Temp\MyDoc.DOCX is NOT the path I have given in Navigate method. Also, if I click Save in open/save dialog box, I can save to a location and open it.

I don't have direct access to this server, but if I can believe the words of support person, every configuration is set same as our old server. Here is the details.

.NET Framework 3.0

MS Office 2003

Internet Explorer 6 SP2.

Could any one please help me to solve this issue? Any help is very much appreciated. Please let me know if you need any other details.



Error when saving file from Word: This file cannot be saved because some properties are missing or


I am receiving an error when trying to save a file from Word into SharePoint: "This file cannot be saved because some properties are missing or invalid"

I have got two different Content Types for this Document Library: "Policies" and "Procedures". Both documents have got exactly the same required fields, all required fields are displayed in the Document Information Panel. If I try to save a "Policy" the saving process works fine, if I try to save a "Procedure" I get the above error.

It's as if the Procedure had an additional required field, but I cannot figure out where that would come from? If I go to manage the Content Types and check the list of fields, I can clearly see which fields are required and which aren't.

Is there something I am missing? Or could one Content Type be corrupt? If so, how do I fix it without messing up all the files that have already been posted using this Content Type?

Word 2010 Crashes When Trying to Open/Download File From SharePoint 2010 Using IE8



I'm trying to find a solution to an issue I'm having with Word 2010/SharePoint 2010/ and IE 8 working (or rather not working) together.

I'm using Windows XP, and I have recently upgraded from Office 2007 to Office Pro 2010, in doing so, I can no longer open Word 2010 .doc or .docx files via our SharePoint site using IE8.  I can however, open these files without a problem using Chrome and Safari.  I would prefer to use IE8, as it provides better functionality in other areas for SP.

I have tried the following:

  • Unistall/Re-install of SharePoint Designer, IE8 and Office Pro 2010.
  • Ran the repair and config on Office 2010
  • Reset the IE security settings.
  • Unchecked the "automatically detect settings" box under the LAN connections.
  • Added our SP site to Trusted Sites
  • Disabled each view under Protected View in Word Options Trust Center.
  • Checked the Save settings under Word Options Save.

 - all steps either together or separate to no avail!

For a bit more detail - here's the error I'm receiving:
"Microsoft Word has encounted a problem and needs to close.  We are sorry for the inconvenience."
AppName: winword.exe      AppVer: 14.0.4734.1000     AppStamp:4b58fb0e<

Document Library, Word Document Default File Name


I'm attempting to create a series of document libraries dedicated to tracking meeting minutes in sharepoint (word documents) for which I have some special needs and I haven't found a good way of going about it.

Basically the setup is that when a new meeting occurs the user would open the most recent meeting minute document from the library, change the date and than update the document with the current meetings information.  Upon saving the document the default document name should be dynamicaly built for the new meeting.  The name should use the currently selected date (tag).

The question is where to assign this function and how.  In word their doesn't appear to be a way (using word 2010) to default the document title (filename) property based on a tag (the date).

How would I go about setting up a default file name for a document in a sharepoint library?

Office Web Apps 2010 for SharePoint Foundation will not View Word or PowerPoint File


I have installed a SharePoint Foundation 2010 in a Farm environment and installed Office Web Apps 2010. I have not been able to view Word documents or PowerPoint documents inside of the web browser. I can view Excel documents okay and I can edit a Word doc in the browser.


Does anyone have any suggestions as to what may be the problem?

Daryl Gilbert II

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Creating Excel file from C#

I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SmtpClient and Locked File Attachments

Got a note a couple of days ago from a client using one of my generic routines that wraps SmtpClient. Apparently whenever a file has been attached to a message and emailed with SmtpClient the file remains locked after the message has been sent. Oddly this particular issue hasn't cropped up before for me although these routines are in use in a number of applications I've built.

How to call an .exe file in .net

Sometimes a developer has to call an EXE from another EXE. While calling EXE there can be a requirement to pass parameter.

ClientAccessPolicy file in SharePoint 2010

I am upgrading my Silverlight demo code from the old beta to beta 2 and see that there are a few new considerations for the deployment of ClientAccessPolicy.xml files. In a previous post I demonstrated how to do this for SharePoint 2007. The heartburn that I get with that approach is any site collection owner or designer can drag the file into the site collection and open the site up to unwanted client access issues. In 2010 the virtual path provider no longer serves the files from the root of the site collection

Multi File Upload Using JQuery!

Everyone knows about the file upload in .NET. But the multi file upload is some what difficult in .NET. For that purpose we can have some AJAX or JQuery!. Jquery is the latest advanced version. It will give some animated upload. You can try it for your own!!!!
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