[Previous] [Content Page] [Next]
Moving from Word into FrontPageImagine that your coworker bolts into your office asking you to post his sales report on the company intranet right away. The only problem is, he wrote the report using Word. What should you do (aside from asking him to knock next time)? Well, you can post the Word document as is and link to it, but what if that's not good enough? Your other options are to convert the entire document into a Web page, or you can copy the content out of Word and paste it into a blank Web page in FrontPage. There are pros and cons to each approach. 18.2.1. Converting Word Files into Web PagesIf you're in a real hurry, you may be tempted to use the fastest method to get your Word content Web-ready, which is the "Save as Web Page" feature on Word's menu. To save your document as a Web page, open your document in Word and select File
This method is the quickest way to turn a .doc file into an .htm file, but it's also the dirtiest. Use it only if you're in a huge hurry to post a document. The resulting files come with a lot of baggage. Word actually creates multiple files (so you can turn the HTML file back into a Word file later), which clutters up your site. Not to mention the fact that the HTML file itself is loaded with unnecessary formatting code. In fact, FrontPage treats these files differently from regular Web pages. If you double-click one in the folder list, FrontPage opens the document's native programbe it Word or Excelto let you edit the file (see Figure 18-2). If you want to open the file in FrontPage, right-click it, and then select Open With
18.2.1.1 Converting with drag-and-dropThere's an even better method than "Save as Web Page" that's just as fast for converting Word documents. If you drag a Word file from anywhere within Windows Explorer onto a blank page in FrontPage, you'll get a Web page that retains your Word formatting but seriously cuts out all the garbage that the Save As method can't shake. If you're in a hurry, this drag-and-drop option is the way to go. Also, the resulting file isn't one of the strange hybrid HTML files pictured in Figure 18-2. It's a bona fide Web page that FrontPage has created and treats like any other in your site. 18.2.2. Copying Content from Word into FrontPageIf you're looking for control over the code you feed into your Web site, another good way to get content out of Word and into FrontPage is the trusty old Copy and Paste methodbut you've got to do it right. 18.2.2.1 FrontPage's paste optionsDon't just paste your Word content in blindly. Use some of FrontPage's advanced paste features to help you create clean pages. When you paste, don't retain the content's original source formatting (which is what FrontPage automatically does when you paste). Instead, click the paste icon that appears and select Keep Text Only. Better yet, don't let FrontPage do anything automatically. Instead of pasting as usual (by pressing Ctrl+V or clicking the paste button on the Standard toolbar), select Edit 18.2.2.2 Using NotepadMany Web authors go through an intermediary step to protect their code from the gobbledygook that comes in with formatted paragraphs from Word. They copy text out of Word and paste into Notepad, Windows's barebones text-editing program. Then, within Notepad, they select and copy the text again and paste it onto a page in FrontPage. Why the extra step? Since Notepad has no formatting features, the program automatically strips out all the frills. 18.2.2.3 Formatting pasted contentWhen you leave out Word's formatting, you'll need to spend some time dressing up your page so it looks good with, for example, headings differentiated from regular paragraphs. Of course, if you've applied Cascading Style Sheets to your site, this can be done with a few clicks that apply paragraph and class styles to page elements. (Flip back to Tutorial 7 to read how CSS helps you format pages in your site with ease and efficiency.)
|
[Previous] [Content Page] [Next]
