>>Rereading your TOC problem, I think I misunderstood. You weren't after putiing some word fields in doc, but creating a TOC. Yes in that case I'd just saveas doc and then create TOC via automation.
>>Cetin
>
>
>Well, I am not clear on the sequence of events here.
>Is this your thinking ?
>
>Create the HTML file.
>Create a WORD automation object.
>Open the HTML file using automation.
>Save the HTML file as a DOC using automation.
>Create the TOC using automation.
>
>If so, the implementation of that last step does not present itself as trivial. I will have to ponder that. But I think it could be doable.
>Might be able to insert some tags for later search and replace process to get the proper codes in there. Not sure.
Yes it was the sequence I thought. For TOC if styles are used it would be easy to create TOC at one shot. Unfortunately TOC is something that I never wrote some sample code for ref. IOW while saying easy I only 'think' it'd be, not tried :)
Cetin