howto export a styled formated field to text file
stephenREVOLUTION2 at barncard.com
Sun May 23 12:02:55 EDT 2010
htmltext is the only way to fully save style information. Any more field
specs outside the limited range of the subset of htmltext (like
backgroundcolor, alignment, lineheight and all the other properties of a
field) have to be done in another way - In some situations, I will add my
own "static attribute" tags to the htmltext in a way that they can be
recovered just before setting the htmltext, then applied to the field:
these are easily parsed property name and value pairs.
A nice feature of htmltext is that it silently ignores tags it doesn't
On 23 May 2010 03:57, Pierre Sahores <psahores at free.fr> wrote:
> Stephen, sims,
> 1. : i'm able to apply style attribute to a field contents (example : in
> changing the title line style font, wight, etc...)
> 2. : i'm, then, able to save this styled field contents as HTMLText or
> RTFText and it's OK
> Question : is it a way to retrieve 1.- from 2.- (HTMLText or RTFText back
> to the initial styled attributes that i had applied to the field contents
> first) ?
> No direct way ?
> Thanks for any starter point !
> Le 23 mai 2010 à 11:57, Pierre Sahores a écrit :
> > Stephen and sims,
> > Many thanks for your helpfull imputs. The RTFText seems to cover all my
> expectations. (always read the manuel !).
> > Kind Regards, Pierre
> > Le 23 mai 2010 à 10:00, stephen barncard a écrit :
> >> The only way to save styled text in a field is by using the HTMLText or
> >> RTFText properties of the field. Get the saved htmltext back from the
> >> database and set the field to the data.
> Pierre Sahores
> mobile : (33) 6 03 95 77 70
More information about the Use-livecode