Zdnetasia.com Estimated Worth $178,365 USD. Daily Ad Revenue:$244 USD, Daily Views:81,445 Pages... - http://www.haplog.com/www.zdneta...
6 hours 32 minutes ago by Haplog on twitterZDNet is available in the following editions:
Learn how to use Microsoft's Office HTML Filter to remove the extra tags that Word generates and create squeaky-clean HTML documents.
So what do you do if you want to create clean HTML but don't want to abandon Word and the useful things it does bring to the table? You can use Microsoft's Office HTML Filter to remove the extra tags that Word generates and create squeaky-clean HTML documents.
What's wrong with Word?
Microsoft Word does a great job as a word processor, but it's not very useful for creating HTML documents that you can quickly plug into a Web site. When you a Word document as HTML, Word adds page- formatting tags that can make the document very large. These page-formatting tags may also cause content management programs and Web sites to behave unexpectedly.
Microsoft added the special tags to Word's HTML with an eye toward backward compatibility. Microsoft wanted you to be able to save files in HTML complete with all of the tracking, comments, formatting, and other special Word features found in traditional DOC files. If you save a file in HTML and then reload it in Word, theoretically you don't loose anything at all.
Unfortunately, when you then move a standard Word-generated HTML file to a Web site, bad things can sometimes happen. Formatting tags included in the Word file can conflict with settings on a Web server, causing the document to display incorrectly. Additionally, a browser may misinterpret the tags and display the file incorrectly. The HTML file also contains versioning and authoring information that you may not want to have appearing on a Web site.
To save a Word document in HTML, select Save As Web Page from the file menu. Using this article as an example, Figure A shows the clutter that Word adds to an HTML document.
Figure A |
![]() |
| Microsoft Word adds its own formatting information to HTML files. |
Basically, the first 100 lines of the HTML file contained nothing but formatting information. Actual information didn't appear until line 93 of the file. This complete article, saved in Microsoft Word's default HTML format, consumed 18 KB of space. As you can see, it's both large and inefficient. Obtaining and using the filter
Both Microsoft Word 2002 and Word 2002/XP include an option to save Filtered HTML, but the filtered versions still include a lot of clutter. Word 2000 doesn't include a Filtered HTML option at all. That's where the Office 2000 HTML Filter 2.0 comes in. This is a freeware utility that you can download from Microsoft's Download Center that will strip the excess formatting tags from Word-generated HTML files.
The file you'll download, msohtmf2.exe, is small (only 256 KB), so it will download very quickly. Save the file to a temporary location on your workstation. You'll install the filter using this file.
When you start the installation, you'll notice that it installs just like any other Windows program you've ever installed. There are no gotchas along the way; just follow the on-screen prompts.
After the installation is done, you can use the filter. Begin by restarting Microsoft Word. In the File menu, you'll now notice CompactHTML in the Export To menu choice. Open a Word document and save the file by clicking File | Export To | Compact HTML. When the Export To HTML As window appears, give the document a file name and click Save.
As you can see in Figure B, the resulting HTML code is somewhat cleaner. Also, the file size is reduced dramatically. Using the CompactHTML feature, the file size for this document went from 18 KB to 12 KB.
Figure B |
![]() |
| The CompactHTML settings create cleaner HTML code. |
Even though CompactHTML is an improvement, you can strip even more information out of the document by using the Office 2000 HTML Filter's actual utility. To start it, click Start | Programs | Microsoft Office Tools | Microsoft Office HTML Filter 2.0. When you do, you'll see the utility window shown in Figure C.
Figure C |
![]() |
| You can create cleaner code by using the filter interactively. |
The filter is very easy to use. Click Add, select the file you want to convert, and click Apply. You can convert multiple files by continually clicking Add and adding files before clicking Apply.
By default, the filter doesn't clean the HTML any better than the CompactHTML settings in Word do. However, you can customize the filter by clicking the Options button. When you do, you'll see the screen shown in Figure D.
Figure D |
![]() |
| You can control filter settings. |
Options you can control here include:
I've found the best results by selecting all of the checkboxes except for Delete Backups After Processing and Use VML For Displaying Graphics. You should experiment to see which settings work best for your situation. Using these settings, the filter produced the HTML for this article as shown in Figure E.
Figure E |
![]() |
| Here's how the filter created HTML for this article. |
As you can see, the HTML is much cleaner. It's smaller too: The final converted article is only 10 KB in size.
Who needs a GUI?
The Office 2000 HTML Filter also allows you to convert files from the command line as well as from the GUI. To use it, open a command prompt. You'll use the filter command to filter your HTML files.
You don't need to worry about knowing where Filter is located. During Setup, the Office 2000 HTML Filter setup program installs Filter.exe to the \Windows directory so it's already in your path.
To convert a file, type filter file1.htm file2.htm and press [Enter], where file1 is the name of the source file and file2 is the name of the target filtered file. Filter includes switches that you can use to control just how much information is removed from the source file. To get a complete list of switches and how to use them, type filter /? and press [Enter].
Office 2000 HTML Filter caveats
Don't let the Office 2000 in the title discourage you if you use Word XP. The Office 2000 HTML Filter 2.0 works just as well with Word XP generated HTML as it does Word 2000 HTML. The problem is that the installer for the Office 2000 HTML Filter won't allow the program to install unless you have Office 2000 on your system.
You can get around the limitation by first installing the filter on a computer that already has Office 2000 on it. Then, copy these files from the Office 2000 workstation to your workstation:
The DLL file is best placed in your C:\Windows\System32 directory, but you can also place all of the files into an OfficeFilter directory. Just create a shortcut to the MSFilter.exe file and you're ready to go.
Zdnetasia.com Estimated Worth $178,365 USD. Daily Ad Revenue:$244 USD, Daily Views:81,445 Pages... - http://www.haplog.com/www.zdneta...
6 hours 32 minutes ago by Haplog on twitterrecently estimated website net worth of zdnetasia.com - http://www.haplog.com/www.zdneta...
6 hours 32 minutes ago by haplog on topsyWhen I create an event, I click on an approximate time during the day when I want the event to occur, then I click "edit event detail...
21 hours 8 minutes ago by bessellbrowne on Google Calendar gets 'smart' reschedulingipads break alott i had one it broke three times in the month i had it so i got rid of the damn thing id just go for the laptop Top Grade...
21 hours 10 minutes ago by bessellbrowne on Report: 'Hundreds of thousands' of iPad preordersThere are a number of websites that still require Internet Explorer to view and IE for Mac Stinks (it is really ies4osx which is the Wind...
21 hours 12 minutes ago by bessellbrowne on Microsoft: Only minor tweaks in Windows 7 SP1The receivers don't transmit back to the satellite. Unless there is a phone line attached to the receiver, they don't have any wa...
21 hours 15 minutes ago by bessellbrowne on Apple to join the geolocation craze?What to expect from open source Symbian http://is.gd/aPIGL
21 hours 30 minutes ago by rebelk0de on topsy"Lead Cognos BI Developer Insurance - Jobs - ZDNet Asia" http://bit.ly/bRcxOG
22 hours 9 minutes ago by rhrcognos on topsywhatever little understanding I have we 'll only progress toward end of the world if we use HPCs to lenthen life of human being. Huma...
1 day 21 minutes ago by abhi32002@gmail.com on High computing promises elixir of lifeThanks for the knowledgeable article on SDDs. Allas...when all this reasearch will happen in Indian Universities. Hope the new bill on Fo...
1 day 34 minutes ago by abhi32002@gmail.com on APAC HPC users eye solid-state drivesIt was a good article. This brings a good opportunity for Indian IT firms to come up with new solutions in this field. HPC can become a b...
1 day 53 minutes ago by abhi32002@gmail.com on High computing most-wanted job in AsiaCOL KR DHARMADHIKARY(RETD) its very late to reply the link, but if it is still alive and looking for opportunity, i would like to know th...
1 day 50 minutes ago by deb021280 on Education takes off in rural India, helped by PCsIt was just a matter of time until google was marginalised anyway. I'm afraid this will be forgotten in China very quickly. Still, it...
1 day 55 minutes ago by robinsmith on Report: Google to leave China on April 10High performance computing (HPC) most-wanted job in Asia http://bit.ly/9vFC3i (via @zdnetasia) #singapore
1 day 7 minutes ago by mySingapore on twitterHe doesn't care if her shoes are of glass, All he wants to see is a huge rack and nice a*s. Sleeping beauty's not awoken by true ...
1 day 24 minutes ago by warlowdavies on One pair of 3D glasses to rule them allRT @zdnetasia: EMC COO, Pat Gelsinger, on bridging gaps in the organization and its cloud ambitions in Asia. (cont) http://tl.gd/i5jjd
1 day 55 minutes ago by mistymaitimoe on twitterEMC COO, Pat Gelsinger, on bridging gaps in the organization and its cloud ambitions in Asia. http://bit.ly/9etOZW
1 day 59 minutes ago by zdnetasia on twitterAsian SMBs need to pay more attention to disaster recovery planning http://bit.ly/bDet08 via @zdnetasia
1 day 15 minutes ago by asiapacsolution on twitterAsian SMBs need to pay more attention to disaster recovery planning http://bit.ly/bDet08
1 day 30 minutes ago by zdnetasia on twitter[TECH] URL Shorteners slow Web redirection. - http://bit.ly/bySnWK @zdnetasia
2 days 13 minutes ago by danielcktan on twitterURL shorteners are great but they can slow web redirection & you pray it would never go down http://bit.ly/bySnWK via @zdnetasia
2 days 41 minutes ago by angahsin on twitterTemasek Holdings eyeing tech stocks, indicating optimistic outlook on IT sector. http://bit.ly/aM7VwU
2 days 10 minutes ago by zdnetasia on twitterURL shorteners slow Web redirection. http://bit.ly/bySnWK
2 days 10 minutes ago by zdnetasia on twitterChinese agencies cry foul over Google. http://bit.ly/by6rwV
2 days 16 minutes ago by zdnetasia on twitterPhilippine antipiracy drive focuses on enterprises. http://bit.ly/aWryDC
2 days 37 minutes ago by zdnetasia on twitterGartner: China to become world's fastest-growing enterprise software market. http://bit.ly/bqJTtb
2 days 38 minutes ago by zdnetasia on twitterall of sg's isps have been practising compulsory invisible proxy for all home subscribers at their backend since many years back alre...
2 days 34 minutes ago by melvinchia on Web filters mean bad news for businessit is not to good for china.
Proactol
RT @zdnetasia: HP touts new products and management and productivity tools to address business computing pain points. http://bit.ly/dudgA6
2 days 49 minutes ago by LiruChan on twitterFor those with a computer science background, or interested in the high performance computing scene: http://bit.ly/9vFC3i
2 days 14 minutes ago by zdnetasia on twitterIT security insiders rob casinos of $50K http://is.gd/aPIKR
3 days 50 minutes ago by rebelk0de on topsyVery good explanation of JMX
3 days 24 minutes ago by Babith B on Managing applications with JMXThe reaction to a report issued Tuesday by Flurry Analytics managed to completely overlook some interesting news--the Android-based Motorola Droid outsold the original iPhone over the same period of time following their respective launches--to focus instead on the sales numbers for the Nexus One.
3 days 27 minutes ago by lonemavericks on diggsAnother ZTE story....
4 days 29 minutes ago by Moderate Your Greed on Philippines opens bid for final 3G licenseWe at www.fifosys.com have also seen a growth in IT outsourcing and anticipate it as a growing field.
4 days 2 minutes ago by sarah Jane on Companies' outsourcing spend to increaseThe Desktop Virtualization Revolution is here!
Find our more with Citrix Simplicity is Power
2010 IT Salary & Skills Report
Find out the salary range of IT professionals. Join activeTechPros for free access to the report.
The Internet Show 2010, 21-22 Apr 2010, Singapore
FREE admission for visitors who pre-register online. Register Today!