how to write a field on a file keeping the text formatting intact

Mark Smith mark at maseurope.net
Mon May 7 07:30:34 EDT 2007


André, you need to write the htmlText of the field to the file:



set the defaultFolder to specialFolderPath("desktop") & "/IMPORT" --  
with file "thisFile.doc" in "IMPORT
open file "ThisFile.doc" for write
write the HTMLText of fld "thisField" to file "suchFile.doc"
close file "suchFile.doc"

Best,

Mark




More information about the use-livecode mailing list