Hi Richard, Thanks for getting back to me.
> This file should be written to the *temporary* directory, in the first > instance---all files for export should first be written there---and > registered as an included file. This would be something like: > string const fcssname = addName(temppath(), "docstyle.css"); > Then > runparams.exportdata->addExportedFile(fcssname); > if it opens correctly (or, I guess, after it closes correctly). Okay, this makes sense. I was able to correctly add it to the temporary directory, but I wasn't sure how to export it back to the destination directory. The closest I was able to find under the export data routines was: runparams.exportdata->addExternalFile(&format, &filename); except, I wasn't able to get a handle on how it works. (Probably because it was really late when I looked at it.) How do I register the format for CSS (or would I want to register it as XHTML)? I tried just a simple string with "CSS" in it, but I was not able to get the export class to successfully copy the docstyle.css file from the temporary directory to the destination directory. (I'll try again the morning and see if it becomes any more clear.) > If this fails we should probably fall back to writing it to the file header. Good point. I'll make the change in the logic and send a new patch in the morning. Cheers, Rob