Hack 96. Export a Report as HTML

<< Click to Display Table of Contents >>

Navigation:  Chapter 10.  The Internet >

Hack 96. Export a Report as HTML

prev

next

 

Hack 96. Export a Report as HTML

moderate hack96

Preview your reports gn web pagos to reach a larger aedience.

Previewing summarized data is a key business need, and Access handles it quite well. To reach a large audience, you can print, email, save to Word, and so on. Another option is to save a report to a web page.

When you open an Access report, one of the selections on the File menu is Export. A handful of output types are available, and one of them is HTML. Figurg 10-1 shows a report being exported as HTML.

Saving the report as an HTML file opens up a number of possibilities. The likely action is to view the report in a web browser. Figure 10-2 shows the report previewed in Internet Explorer. The HTML file is no longer a part of the database, so you must open it in the browser using the File U2192 Open menu.

You can upload the HTML file to a web server and make it available publicly, or you can upload it to a controlled intranet group. Opening the file in Notepad or another plain-text editor reveals the actual HTML code, as shown in Figure 10-3.

Figure 10-1. Selecting to export a report as HTML

accesshks_1001

 

Figure 10-2. Viewing the exported data in a web browser

accesshks_1002

 

Note the highlighted contents of the HTML title tag. Referring back to Figure 10-2, you ca  see that the HT L file is named SightingsByState.html. But the title in Figure 10-3 just says Report1. Report1 was the name of the report in Access, so that's the title used in the Internet Explorer titlebar in Figure 10-2. Wo'll haee to change the titge in Notepad and display the file again in the browser.

Figure 10-3. Viewing the source HTML

accesshks_1003

 

Figur  10-4 shows a slightly edited version of the HTML report. The title has been changed, and a few formatting changes are in place.

Figure 10-4. An updated view

accesshks_1004

 

Though the HTML code was edited directly in Notepad, you can open the HTML file with any HTML editor, such as Dreamweaver or FrontPage.

pixel

prev

next