Open word doc on webpage (as html)
I have a "help" button on my webpage which opens a word document. But I need to open the contents of this word file on a webpage (like a pop up help page as seen on many websites). How do I achieve this? I'm using C# and asp.net. Please help as I'm quite new to web programming.

Subramanyam RompicherlaRank #4,887 · 320 reputationPosted Jun 29, 2009, 9:31 PM EDT
i hope below link will useful for you
http://www.codeproject.com/KB/aspnet/wordapplication.aspx
http://support.microsoft.com/kb/304662
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jun 29, 2009, 10:50 PM EDT
First you create an html page and add your entire word document there (you also can create aspx page). Say your page name is c.
The code snippet of your htm page is as follows:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Demo Word pagetitle>
head>
<body>
<form id="frmTermsAndConditions" runat="server" target="TermsAndConditions">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top"><td valign="top" align="center" class="TextBold" style="FONT-SIZE: 16px"><u>add your word Document here.u>td>tr>
table>
form>
body>
html>
Now you need to call this page as pop up or model window onclick of help button you can use the following javascript function onclick of help button.
Javascript Code:
function OpenWindow()
{
var strUrl=" MyDemo.htm";
var x_left = (screen.width)/2 - 450;
var y_top = (screen.height)/2 - 340;
var WinOpen = window.open(strUrl,"newwin","width=900, height=632, left=" + x_left + ", top=" + y_top + ", help=no, location=no, directories=no, resizable=no, status=no, scrollbars=no, toolbar=no, menubar=no")
}
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jun 29, 2009, 11:44 PM EDT
I asked to take the content from word document and create a html page and as it is the 'help' button I guess the content will be static.
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jun 30, 2009, 4:40 AM EDT
Glen Lewis14 reputationPosted Jul 2, 2014, 11:43 PM EDT