Embed word file web page




















Any more feedback? The more you tell us the more we can help. Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. No jargon. Pictures helped. Didn't match my screen. Incorrect instructions. Too technical. When this site is viewed, the control will display the Word document in the defined area.

This article demonstrates an approach that may be used to develop a custom control through which Word documents may be embedded into a web page. The purpose of the control is to allow the Word document to be included within a web page as opposed to the alternative of opening the document into a separate page or evoking a download to the document for local viewing in Word or the Word Viewer. Naturally, the code included in the custom control could be added directly into any page and the same effect could be achieved, however, by adding the code once into a custom control, the developer need only drop the control into the form and set the file path and dimensions to display Word documents without repeating the manual addition of the code each time it is needed.

The control may be used with Word doc files, however without the conversion to MHT format, the browser will attempt to download the file locally for viewing. If the intent is to embed rather than download, this approach is valid.

View All. Scott Lysle Updated date Nov 29, Introduction This article describes an approach to displaying word documents within a web page using a simple custom server control. Getting Started There are two solutions included with this download, one is web custom control library containing a single custom control used to render out the Word document in MHT format , the other is a test web site used to display a document through the use of the control. The control code starts out with the default imports and class declaration: using System; using System.

Generic; using System. ComponentModel; using System. Text; using System. Web; using System. UI; using System. UrlEditor , typeof System. Open Google Sites. If you aren't logged into your Google account when you do this, you'll be prompted to enter your email address and password before continuing. Select your Google Site. Click on the Google Site on which you want to insert the Word document.

Go to the page that you want to use. Scroll down until you arrive on the page on which you want to insert the Word document. It's in the upper-left side of the Google Sites window. Click From Drive. This option is below the "Google Drive" heading near the top of the page. Select the document. In the right-hand column, click the document that you want to insert. It's in the lower-right corner of the page.

This will place the Word document on your website. Resize the document. Click and drag the top or bottom of the document to adjust its vertical size, or click and drag one of its sides to adjust the overall size of the document on your site. It's the purple button in the top-right corner of the page. This will update your website with your uploaded document; you should now be able to see your Word document embedded in your Google Site. Method 2. Open WordPress. While you can't embed an image of your document on a WordPress domain, you can embed a link that downloads the WordPress file when clicked.

If you aren't logged into your WordPress account, first click Log In in the top-right corner of the page, then enter your email address and password. Click My Site. It's in the upper-left corner of the WordPress page.

Doing so will load your site's page. Click View Site. This option is in the upper-left side of the page. Click Visit Site. It's in the upper-right side of the page. This will take you to your site. Click the tab for the page on which you want to insert your Word document link; you'll usually find these tabs at the top of the page.

Click Edit. You'll find this option in the bottom-right side of the page. Choose a place for your link. Can you help us improve? Resolved my issue. Clear instructions. Easy to follow.

No jargon. Pictures helped. Didn't match my screen.



0コメント

  • 1000 / 1000