.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

show word document on aspx page.

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :ASP.Net
Hi,I'm working on an asp.net web application in c#. I need to create a application in which I want to open a word doc in my aspx page. This task is accomplish by this Interop.Word.dll but this dll not working on sever.Is there any other solution.please reply

View Complete Post

More Related Resource Links

how to embedd a word document into web page

Hi All, I want to show a new word file opened in a panel/div/frame on web page. Can anybody help me in doing that. I have tried with Iframe but when page loads completely it opens as open save dialog but I want it to be opened on web page. Please help. 

Fill Details of Web page By uploading word document

Hi all,I m Developing such system where  i need to read word document and using that want to fill details of webpage.For example, User Upload his/her resume and his profile detail like firstname,lastname,address etc.. has to be filled up in the webpage automatically.Please be needful. Thanks in AdvanceAnkit Shah

How to show left menu and center of page contents in an ASPX page?


Scenario : Within sharepoint site user will click on a hyperlink which should take him to a new page and this new page will have the same header/footer (so I will create a copy of the masterpage with just header,footer) but the left side menu navigation will dynamically change and for each click event within the menu, the center of the page will show varying texts plus videos.

Need some directions as how I can acheive the above? What should I use to build menu control and similarly how to control the center text of the page.  

Can I acheive the entire above using webpart and if so how? Do I need to use user control for menu and for center text display webpart ? or else any other best options?  

Please suggest.

How do I get a new column I created to show-up in the DisplayForm.aspx page?

Here's a little introduction to how I got here:

Downloaded the WSS Help Desk application template and installed it and now my company wants to add a column to the ServiceRequests list called "Service Request Type".  So I created a new column and made it a choice of "Incident" or "Change".  I then customized the EditForm.aspx and NewForm.aspx to provide the new entry.  Other than losing the ability to attach documents the forms are working perfectly and collecting the data.  My problem is that when I open the DisplayForm.aspx and attempt to add a new row and use the <xsl:value-of select="@SRType" /> I don't see any values displayed.  Also, I can browse  the Data Source Library and click on Service Requests > Show Data and see the new list item but when I choose the button for "Insert Selected Fields as...", the Item is greyed-out.  

Tried manually inserting code based-on similiar entries but still no luck.  Here's what I have so far:

      <td width="190px" valign="top" class="ms-formlabel">
         <H3 class="ms-standardheader">
           <nobr>Service Request Type</nobr>
      <td width="400px" valign="top" class="ms-formbody"><

Creating MS Word Document programatically in sharepoint foundation as Link Button on Master Page?



Can any body help me how to create a new document programatically for OnClick of  a LinkButton on my Homepage  as per the requirement.

I had installed MS OfficeWebApps on my Development Server which its working fine but the "Create Document " is on Top Ribbon for which the link should be on the right side of the Content Page of Home.Aspx as per the req.

Pls guide me how to achieve this.


Thanks in Advance !!!!




Thanks in Advance !!! Cheers !!! Praveen

Default Column Values in a Document Library (SP2010) do not show up in word 2010 until you save and


when you create a document in a SP 2010 document library (of a particular content type, by clicking new, letter (content type name) in sharepoint for example) which has default values set on in in the library (set by using library settings -> change default column values), the default values do not show up until you create the document , save it and reopen it again.  Is this a bug or by design.  If it is by design, it is horrible since if some of the column default values are mandatory in the content type then you actually have to type them in before you could possibly save the file which defeats the whole point of having default column values.  Also it is tremendously clunky for a user to have to create file, save it , close it, and reopen it just to view the default metadata in the document information panel that is supposed to be there.

Anyone have any thoughts/solutions to this problem?


WSS 3.0 - How can I get a document ID in Search Results.aspx page.



Does anyone know how I can get the ID of a document in the SearchResults.aspx page?

I have got javascript code in this page to update the link of the icon to edit the document as opposed to viewing it (Need Document ID though).

There must be a way to do this using server side code??????

Your help would be most welcome.




Search results doesn't show Word document Title Properties


The search result doesn't show the Word document's Title properties.

For example a Office 2007 Word document has Title properties as "Dell, Template (MN 520287) Test Method", the first word in the document is "Opearation".

The Search result shows the search result with the first word of the document as the search result as

The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (MN 520287) Test Method.docx

instead of

Dell, Template (MN 520287) Test Method
The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100) Test Method.docx 

How do I create an Upload.aspx link on the front page of my document library without the subsequent


I need to create an Upload.aspx link on the front page of my document library, rather than rely on the + Add Document link at the bottom of the list.

When I copy the URL of the Add Document link to my page or as a quick link it uploads the file, brings up the metadata form, but then asks the user to save the file on save.

Clicking on the + Add Document link does a clean upload without the reuest to save the file?

The link I create has the format "_Layouts/Upload.aspx?List={ABC123}&RootFolder=tFolder="

Is there some parameter to Upload.aspx? that I need to add?

Sharepoint Checked Out Word Document Cross Reference Error on Page number Only



I see the same error as RHABALA reported in an earlier thread, after I check out my Word Document from Sharepoint into Word 2010. 

When I Control-click on any of my Cross References to Page Number, they fail with the warning prompt, they seem to be incorrectly pointing at the Sharepoint path. But when I Control-click an any Cross References to Paragraph Numbers,  they still work. I've added my Sharepoint Site to the trusted list in Internet Explorer, as recommended in that thread, but no difference, the error persists.

Grateful for your assistance.


Click on document and Redirect to a custom aspx page.


Hi all

I have created a document library and uploading files in it.

when i click on any document it is opened at client side for example in sharepoint designer.

I want to redirect to a custom aspx page when user clicks on any document rather than opening at client side.

Is it possible?

show row of list data in collect.aspx page



I have sharepoint list that user raise a question on it,then I want to collect data from Manager to confirm this question.

I create workflow when item created with collect data action, I want to show the item that user add to list in collect .aspx page that manager can see related data that user enter it,then decide to confirm it or not. How I can show data(one row that user enter it) on collect.aspx page?


Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Charset Problem with dynamically generated Word Document


in my asp.net web application i am dynamically generating a word documnet out of a sql data. I have set the char set UTF-8 during the doument creation in code but still when i open the generated document and check it char set .. it is always windows-1252 not the one that i have set. My sql data in the document have special characters whihc can only be understandable using the UTF-8 charset otherwise its always ?T written in place of an apostrophy . Pasting my code here..

         HttpContext.Current.Response.ContentType = "application/msword";
         HttpContext.Current.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8;
         HttpContext.Current.Response.Charset = "utf-8";
         string strFileName = "Details" + ".doc";
        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
        StringBuilder strHTMLContent = new StringBuilder();
        string strMessage = " ";
        DataView abstractview = (DataView)dsAbstract.Select(DataSourceSelectArguments.Empty);
        foreach (DataRowView row1 in abstractview)
            strMessage += "<table border='1' cellspacing='0' cellpadding='5' width

Embed word document inside excel



I am using ASP.NET and C# 2.0 and working on web application.

I want to embed a word document inside a excel sheet.

How to embed word document inside excel.

Thank you



Integrating aspx page in classic asp web application



I have a classic asp web  application. I am trying to add an aspx(C#) page to the existing asp application.

The existing asp pages have include pages for header and footer. How to add the classic asp include files in aspx page.

Also, How to deploy the aspx page in the existing classic asp web application.

Thank you

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