>I still don't understand. If you're not using the ASP style tags there's no reason to use ExpandTemplate(). If there are ASP style tags in whatever document you use then you can apply the code I posted to any of the tags that need it. It won't be automatic, because formatting doesn't require this in most cases...
For each template we have, such as .HTML file which are for data entry forms, I always use ExpandTemplate(). Is there any other way to do it? All those forms contain variables that need to be replaced at run time from the values coming in from the tables. If I don't call ExpandTemplate(), what will handle it?