On 12/04/2011 01:09 AM, Rob Oakes wrote:
> 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.
>
Ahh, sorry, yes. You register it as xhtml. It's the format you're
exporting to that matters. (So we can register different things for
xhtml, pdf, etc).

Richard

Reply via email to