Microsoft KB Archive/168869

= ACC97: Long File Names Used for Saving Multiple HTML Pages =

Article ID: 168869

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q168869



Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you use the "Publish to the Web" Wizard to output a report to HTML format, each page of the report is exported as a separate HTML file that may contain a long file name.



CAUSE
Each page that is output to HTML format will contain additional characters in the file name. These additional characters will sometimes cause the file name to exceed the standard MS-DOS limit of eight characters.



RESOLUTION
If you do not want your file names to exceed the eight-character MS-DOS limit, rename the HTML files, and then modify the HTML source for each file to reflect the new names. The following steps demonstrate how to do this.

NOTE: This section contains information about editing HTML files, and assumes that you are familiar with editing HTML files. Microsoft Access Product Support professionals do not support customization of any HTML, HTX, IDC, or ASP files.  Follow steps 1 through 4 in the "Steps to Reproduce Behavior" section later in this article. In Windows Explorer, open the folder that contains the HTML files. Rename each of the HTML files so that it no longer has a long file name. View the source for the HTML file that was originally named Catalog_1.html, and scroll down to the following lines at the bottom of the source:

First Previous</A>

 Next</A>

Last</A></BODY>

</HTML>

</li> Modify the references in the source for Catalog_1Page2.html and Catalog_1Page9.html to reflect the new names you have given these files.</li> Save and close the renamed Catalog_1.html file.</li> Open each of the remaining, renamed HTML files and modify the A HREF references for First, Previous, Next, and Last to reflect the new names you have given each of the HTML files.

You will now be able to use the standard file names on your Web browser.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> Open the sample database Northwind.mdb.</li> On the File menu, click Save As HTML.</li> When the "Publish to the Web Wizard" starts, click Next on the introduction screen.</li> Click the Reports tab, click to select the Catalog check box, and then click Finish. The wizard will output the following pages:

Catalog_1.html

Catalog_1Page2.html

Catalog_1Page3.html

Catalog_1Page4.html

Catalog_1Page5.html

Catalog_1Page6.html

Catalog_1Page7.html

Catalog_1Page8.html

Catalog_1Page9.html

</li></ol>

<div class="references_section">