473,785 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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 22600
acoder
16,027 Recognized Expert Moderator MVP
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="pathtoword doc.doc">[/HTML]
Apr 16 '07 #2
zphp01
3 New Member
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="pathtoword doc.doc">[/HTML]
Apr 16 '07 #3
zphp01
3 New Member
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 Recognized Expert Moderator MVP
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
overandback
1 New Member
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="pathtoword doc.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="pathtoword doc.doc">) how do I edit the document programatically eg find and replace.
Any help appreciated.
Thanks.
I
Apr 23 '07 #6
Rebecca999
3 New Member
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
7491
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 before each group. Any way to do this? If so, please provide a clue as to how. Thanks, Kat
1
1502
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
4806
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 between each records? Thank you for the help. Below is my code: Response.AddHeader("Content-Disposition", "attachment;
1
4482
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 print to a certain point in the document and eject the page and continue printing on the next page. Is this possible? TIA
1
1720
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 store the wor document. and how to pass document from front end. plz explain some wa or give some good sites for that task if u know Thanks in advance
0
980
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 my form. I thought of using VISIO or WORD inside the boundaries of the form, but all the examples I saw so far showed how to open a new instance of WORD (a new window apart of the window of my form) and editing the page in there. The same with...
0
1417
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 paragrapsh, which were both returned ok, but I cannot find the property that returns the number of pages in the document. any ideas? :confused:
1
5646
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 page break and print a new page to continue. The following code segment is what I'm using right now. My question is how to insert a page break in the middle of the loop since I don't find any method in PrintDocument similar to this purpose.
3
1371
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
1252
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 at once rather then changing it for each and every file manually.. is this possible using Microsoft.Office.Interop.Word namespace ?? plz guide me..
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.