473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How do I insert a Word Doc into a web page?

3
Hello:

I need to insert a word document into a web page so that visitors can print it or save a copy. Is there an easy way to do this? I'm new with html and javascript.

Thanks!
Pete
Apr 15 '07 #1
6 22577
acoder
16,027 Expert Mod 8TB
Welcome to TSDN.

If the settings are correct from the client-side, you could get the browser to open Word documents automatically within the browser instead of opening the application.

You could have an iframe within the page that points to the document.
[HTML]<iframe src="pathtoworddoc.doc">[/HTML]
Apr 16 '07 #2
zphp01
3
Thanks for the quick response. I tried the iframe instruction and now I am able to see the doc. But, 2 annoying things happened. 1) when I open the webpage it immediately prompts me to open, save or cancel the doc. I would much rather have the user click a doc icon to open it if they want to read it, and not be bothered with it if they are not interested. And 2), if I chose open, it only opens what looks like a very small default frame size. Can I increase this frame size?

Thanks again,
Pete

Welcome to TSDN.

If the settings are correct from the client-side, you could get the browser to open Word documents automatically within the browser instead of opening the application.

You could have an iframe within the page that points to the document.
[HTML]<iframe src="pathtoworddoc.doc">[/HTML]
Apr 16 '07 #3
zphp01
3
I just found out that I can use the below html to do what I'm looking for:

<a href="http://sitename/docname.doc" target="’new’">Click Here for a printable copy</a>

Thanks for everyone's consideration on this!

Pete


Thanks for the quick response. I tried the iframe instruction and now I am able to see the doc. But, 2 annoying things happened. 1) when I open the webpage it immediately prompts me to open, save or cancel the doc. I would much rather have the user click a doc icon to open it if they want to read it, and not be bothered with it if they are not interested. And 2), if I chose open, it only opens what looks like a very small default frame size. Can I increase this frame size?

Thanks again,
Pete
Apr 16 '07 #4
acoder
16,027 Expert Mod 8TB
I just found out that I can use the below html to do what I'm looking for:

<a href="http://sitename/docname.doc" target="’new’">Click Here for a printable copy</a>

Thanks for everyone's consideration on this!

Pete
Glad you got it working. Did you get the frame size to be the right size?
Apr 17 '07 #5
Welcome to TSDN.

If the settings are correct from the client-side, you could get the browser to open Word documents automatically within the browser instead of opening the application.

You could have an iframe within the page that points to the document.
[HTML]<iframe src="pathtoworddoc.doc">[/HTML]
Hi
I am trying to do something similar with word. I have an asp webpage (vb 2005). I want to open a template and so users can edit it however this causes problem on client machines. if I open word within the browser (<iframe src="pathtoworddoc.doc">) how do I edit the document programatically eg find and replace.
Any help appreciated.
Thanks.
I
Apr 23 '07 #6
The most easy way is some third part tools like Google Docs. If you have a web application and want to edit word in this web app, you can try aceoffix.
Jul 27 '16 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Kat | last post by:
This is a new one on me...a user wants to select a report then see a checkbox list of the "groups" to be included in the report. He wants to turn on/off whether or not to insert a page break...
1
by: oforia | last post by:
is there a way to insert a google page into my application and parse it into xml without using the google api kit?
1
by: Rudy Ko | last post by:
Hi, All: I'm populating database records into a panel controls and want to render that panel into a HtmlTextWriter which will creating a word document. Do you know how to insert a page break...
1
by: Danny Ni | last post by:
Hi, Is it possible to enter a page break in a HTML document, when a HTML document is diplayed in browser and user click print, the browser takes control of paging . I would like the browse to...
1
by: aparna | last post by:
Hi To All I am doing one task, in that i am having Word document, and want to insert that word document in the database using asp.net.Pleas tell me which data type can i take in database to...
0
by: Rami Salner | last post by:
Hi! I need to parse an XML with info about programs and show a diagram about these programs in my form. Getting the info about the programs was easy. But I have problem with showing the diagram in...
0
by: jonathanphp | last post by:
Hey People, I am trying to invoke code that will count the number of pages in the document. I was able to open the document using COM and find the properties for the number of words and...
1
by: James Wong | last post by:
Dear all, For some reason, I have to write my own code to print a document instead of using report writer. The source is an array with dynamic length. If one page is full, I have to insert a...
3
by: sandesh964 | last post by:
can i get the code for inserting a word document into access data base and retrieve it from the data base i am using asp.net with c#
0
by: Drupan c | last post by:
hello everybody, i m new to vc# , i want an application where i can select multiple word files using File Dialog and change the page setup property of all the word files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.